Browse Source

Bug test for GH-1370

pull/1371/head
Sami Vaarala 8 years ago
parent
commit
2952ad4346
  1. 16
      tests/ecmascript/test-bug-incdec-stale-act-gh1370.js

16
tests/ecmascript/test-bug-incdec-stale-act-gh1370.js

@ -0,0 +1,16 @@
/*
* Stale 'act' pointer in pre/post inc/dec handling.
* https://github.com/svaarala/duktape/issues/1370
*
/*===
RangeError
===*/
try {
(function foo() {
foo--; foo();
})();
} catch (e) {
print(e.name); // eventual RangeError
}
Loading…
Cancel
Save