Splitting 'delete' opcode to 'delete_var' and 'delete_prop'. Implementing corresponding opcode handlers.

This commit is contained in:
Ruben Ayrapetyan
2014-08-27 17:12:59 +04:00
parent 05185bb2e9
commit 76121926d1
5 changed files with 131 additions and 5 deletions
+2 -1
View File
@@ -47,7 +47,8 @@ ecma_op_check_object_coercible (ecma_value_t value) /**< ecma-value */
{
case ECMA_TYPE_SIMPLE:
{
if (ecma_is_value_undefined (value))
if (ecma_is_value_undefined (value)
|| ecma_is_value_null (value))
{
return ecma_make_throw_value (ecma_new_standard_error (ECMA_ERROR_TYPE));
}