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.
13 lines
271 B
13 lines
271 B
/* XXX: for eval/global code */
|
|
/* XXX: test for handling of 'valued' and 'non-valued' statements */
|
|
|
|
/*===
|
|
3
|
|
3
|
|
===*/
|
|
|
|
/* basic case */
|
|
print(eval('1+2;'));
|
|
|
|
/* an empty statement (like debugger) must not alter non-empty previous result */
|
|
print(eval('1+2; debugger;'));
|
|
|