Implementing ToObject for number arguments.

This commit is contained in:
Ruben Ayrapetyan
2014-10-20 15:39:09 +04:00
parent 1b74687989
commit 8f5160d6bf
4 changed files with 111 additions and 30 deletions
+2 -2
View File
@@ -25,6 +25,7 @@
#include "ecma-gc.h"
#include "ecma-globals.h"
#include "ecma-helpers.h"
#include "ecma-number-object.h"
#include "ecma-objects.h"
#include "ecma-objects-general.h"
#include "ecma-string-object.h"
@@ -477,8 +478,7 @@ ecma_op_to_object (ecma_value_t value) /**< ecma-value */
}
case ECMA_TYPE_NUMBER:
{
/* return Number object with [[PrimitiveValue]] set to the value */
JERRY_UNIMPLEMENTED ();
return ecma_op_create_number_object (value);
}
case ECMA_TYPE_STRING:
{