Implementing EvalError, RangeError, SyntaxError, URIError built-ins and corresponding prototype built-in objects.

This commit is contained in:
Ruben Ayrapetyan
2014-10-30 14:28:44 +03:00
parent 66cb7e316d
commit 4160262ce8
24 changed files with 1205 additions and 33 deletions
+4 -2
View File
@@ -104,7 +104,8 @@ get_variable_value (int_data_t *int_data, /**< interpreter context */
if (unlikely (do_eval_or_arguments_check
&& do_strict_eval_arguments_check (ref)))
{
ret_value = ecma_make_throw_obj_completion_value (ecma_new_standard_error (ECMA_ERROR_SYNTAX));
/* SyntaxError should be treated as an early error */
JERRY_UNREACHABLE ();
}
else
{
@@ -156,7 +157,8 @@ set_variable_value (int_data_t *int_data, /**< interpreter context */
if (unlikely (do_strict_eval_arguments_check (ref)))
{
ret_value = ecma_make_throw_obj_completion_value (ecma_new_standard_error (ECMA_ERROR_SYNTAX));
/* SyntaxError should be treated as an early error */
JERRY_UNREACHABLE ();
}
else
{
+4 -2
View File
@@ -1452,7 +1452,8 @@ opfunc_delete_var (opcode_t opdata, /**< operation data */
if (ref.is_strict)
{
ret_value = ecma_make_throw_obj_completion_value (ecma_new_standard_error (ECMA_ERROR_SYNTAX));
/* SyntaxError should be treated as an early error */
JERRY_UNREACHABLE ();
}
else
{
@@ -1518,7 +1519,8 @@ opfunc_delete_prop (opcode_t opdata, /**< operation data */
{
if (int_data->is_strict)
{
ret_value = ecma_make_throw_obj_completion_value (ecma_new_standard_error (ECMA_ERROR_SYNTAX));
/* SyntaxError should be treated as an early error */
JERRY_UNREACHABLE ();
}
else
{