Adding configuration option for ECMA exception support.

This commit is contained in:
Ruben Ayrapetyan
2014-09-08 19:09:34 +04:00
parent 4d34bab9a0
commit dafbaa742e
4 changed files with 41 additions and 10 deletions
+2
View File
@@ -94,10 +94,12 @@ run_int (void)
/* SyntaxError should be treated as an early error */
JERRY_UNREACHABLE ();
}
#ifdef CONFIG_ECMA_EXCEPTION_SUPPORT
case ECMA_COMPLETION_TYPE_THROW:
{
jerry_exit (ERR_UNHANDLED_EXCEPTION);
}
#endif /* CONFIG_ECMA_EXCEPTION_SUPPORT */
}
JERRY_UNREACHABLE ();