Implementing ToObject routine for case argument is string literal.
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
#include "ecma-helpers.h"
|
#include "ecma-helpers.h"
|
||||||
#include "ecma-objects.h"
|
#include "ecma-objects.h"
|
||||||
#include "ecma-objects-general.h"
|
#include "ecma-objects-general.h"
|
||||||
|
#include "ecma-string-object.h"
|
||||||
#include "ecma-try-catch-macro.h"
|
#include "ecma-try-catch-macro.h"
|
||||||
#include "jerry-libc.h"
|
#include "jerry-libc.h"
|
||||||
|
|
||||||
@@ -481,8 +482,7 @@ ecma_op_to_object (ecma_value_t value) /**< ecma-value */
|
|||||||
}
|
}
|
||||||
case ECMA_TYPE_STRING:
|
case ECMA_TYPE_STRING:
|
||||||
{
|
{
|
||||||
/* return String object with [[PrimitiveValue]] set to the value */
|
return ecma_op_create_string_object (&value, 1);
|
||||||
JERRY_UNIMPLEMENTED ();
|
|
||||||
}
|
}
|
||||||
case ECMA_TYPE_OBJECT:
|
case ECMA_TYPE_OBJECT:
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user