Implementing 'with' opcode; replacing 'end_with' opcode with 'meta' opcode of corresponding type.
This commit is contained in:
@@ -391,7 +391,24 @@ ecma_op_to_string (ecma_value_t value) /**< ecma-value */
|
||||
ecma_completion_value_t
|
||||
ecma_op_to_object (ecma_value_t value) /**< ecma-value */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS(value);
|
||||
switch ((ecma_type_t)value.value_type)
|
||||
{
|
||||
case ECMA_TYPE_SIMPLE:
|
||||
case ECMA_TYPE_NUMBER:
|
||||
case ECMA_TYPE_STRING:
|
||||
{
|
||||
JERRY_UNIMPLEMENTED ();
|
||||
}
|
||||
|
||||
case ECMA_TYPE_OBJECT:
|
||||
{
|
||||
return ecma_make_completion_value (ECMA_COMPLETION_TYPE_NORMAL,
|
||||
ecma_copy_value (value, true),
|
||||
ECMA_TARGET_ID_RESERVED);
|
||||
}
|
||||
}
|
||||
|
||||
JERRY_UNREACHABLE ();
|
||||
} /* ecma_op_to_object */
|
||||
|
||||
/**
|
||||
|
||||
@@ -36,6 +36,9 @@
|
||||
ecma_object_t*
|
||||
ecma_new_standard_error (ecma_standard_error_t error_type) /**< native error type */
|
||||
{
|
||||
/* SyntaxError should be treated as an early error */
|
||||
JERRY_ASSERT (error_type != ECMA_ERROR_SYNTAX);
|
||||
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS(error_type);
|
||||
} /* ecma_new_standard_error */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user