Fix serializer_remove_bytecode_data.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
@@ -328,6 +328,7 @@ serializer_remove_bytecode_data (const bytecode_data_header_t *bytecode_data_p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
prev_header = cur_header_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 */
|
} /* serializer_remove_instructions */
|
||||||
|
|
||||||
|
|||||||
@@ -117,3 +117,8 @@ catch(e)
|
|||||||
{
|
{
|
||||||
assert (e instanceof SyntaxError);
|
assert (e instanceof SyntaxError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// nested eval with function expressions
|
||||||
|
code = 'eval("(function (){})")';
|
||||||
|
code = "eval ('" + code + "')";
|
||||||
|
eval (code);
|
||||||
|
|||||||
Reference in New Issue
Block a user