mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
334 B
20 lines
334 B
/*
|
|
* Compilation and execution of eval code (E5 Sections 13, 10.4.2).
|
|
*/
|
|
|
|
/*FIXME*/
|
|
/*FIXME: this binding, variable environment, variable declarations through eval, etc*/
|
|
|
|
/*===
|
|
foo
|
|
===*/
|
|
|
|
print(eval("'foo'"));
|
|
|
|
/*===
|
|
123
|
|
===*/
|
|
|
|
/* var is an 'empty' statement, so 123 remains as the return value */
|
|
|
|
print(eval("123; var t=10;"));
|
|
|