Fix serializer_remove_bytecode_data.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan 2015-10-28 19:55:19 +03:00
parent a88608a1c0
commit f2c54fbe39
2 changed files with 6 additions and 0 deletions

View File

@ -328,6 +328,7 @@ serializer_remove_bytecode_data (const bytecode_data_header_t *bytecode_data_p)
}
prev_header = cur_header_p;
cur_header_p = MEM_CP_GET_POINTER (bytecode_data_header_t, cur_header_p->next_header_cp);
}
} /* serializer_remove_instructions */

View File

@ -117,3 +117,8 @@ catch(e)
{
assert (e instanceof SyntaxError);
}
// nested eval with function expressions
code = 'eval("(function (){})")';
code = "eval ('" + code + "')";
eval (code);