Add support for eval in parser.

JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
Andrey Shitov
2015-06-10 22:38:17 +03:00
committed by Ruben Ayrapetyan
parent 57c6c377af
commit 3577261261
20 changed files with 322 additions and 92 deletions
+3 -2
View File
@@ -1215,8 +1215,9 @@ jerry_parse (const char* source_p, /**< script source */
bool is_show_opcodes = ((jerry_flags & JERRY_FLAG_SHOW_OPCODES) != 0);
parser_init (source_p, source_size, is_show_opcodes);
parser_parse_program ();
parser_set_show_opcodes (is_show_opcodes);
parser_init ();
parser_parse_script (source_p, source_size);
const opcode_t* opcodes = (const opcode_t*) serializer_get_bytecode ();