Processing unhandled exception by exiting engine with ERR_UNHANDLED_EXCEPTION; determining if function's code is strict by checking for appearance of 'meta' opcode of OPCODE_META_TYPE_STRICT_CODE type at the beginning of the function's code.

This commit is contained in:
Ruben Ayrapetyan
2014-08-28 20:21:32 +04:00
parent ddb2e6e9d5
commit b529fc2da9
5 changed files with 42 additions and 32 deletions
+5
View File
@@ -96,6 +96,11 @@ jerry_exit (jerry_status_t code) /**< status code */
JERRY_UNREACHABLE();
break;
}
case ERR_UNHANDLED_EXCEPTION:
{
__printf ("ERR_UNHANDLED_EXCEPTION\n");
break;
}
case ERR_GENERAL:
{
__printf ("ERR_GENERAL\n");