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.
32 lines
334 B
32 lines
334 B
/*===
|
|
10 20
|
|
-> 10 21
|
|
-> 11 21
|
|
===*/
|
|
|
|
/* Broken at some point. */
|
|
|
|
var x = 10;
|
|
var y = 20;
|
|
|
|
function f_postinc() {
|
|
print(x, y);
|
|
|
|
// interpreted as "x; ++y;"
|
|
x
|
|
++y
|
|
|
|
print('->', x, y);
|
|
|
|
// interpreted as "x++; y;"
|
|
x++
|
|
y
|
|
|
|
print('->', x, y);
|
|
}
|
|
|
|
try {
|
|
f_postinc();
|
|
} catch (e) {
|
|
print(e.name);
|
|
}
|
|
|