Implementing ToObject for boolean arguments.

This commit is contained in:
Ruben Ayrapetyan
2014-10-20 15:26:24 +04:00
parent f666750ce7
commit 1b74687989
4 changed files with 109 additions and 32 deletions
+2 -2
View File
@@ -18,6 +18,7 @@
*/
#include "ecma-alloc.h"
#include "ecma-boolean-object.h"
#include "ecma-conversion.h"
#include "ecma-exceptions.h"
#include "ecma-function-object.h"
@@ -462,8 +463,7 @@ ecma_op_to_object (ecma_value_t value) /**< ecma-value */
case ECMA_SIMPLE_VALUE_FALSE:
case ECMA_SIMPLE_VALUE_TRUE:
{
/* return Boolean object with [[PrimitiveValue]] set to the value */
JERRY_UNIMPLEMENTED ();
return ecma_op_create_boolean_object (value);
}
case ECMA_SIMPLE_VALUE_EMPTY:
case ECMA_SIMPLE_VALUE_ARRAY_REDIRECT: