Browse Source

Bug testcase for GH-268

pull/297/head
Sami Vaarala 9 years ago
parent
commit
7fd3de0fba
  1. 17
      tests/ecmascript/test-bug-empty-finally-segfault-gh268.js

17
tests/ecmascript/test-bug-empty-finally-segfault-gh268.js

@ -0,0 +1,17 @@
/*
* Try-catch regression in master, GH-268.
*/
/*===
still here
===*/
/* For the bug to be triggered, the function being compiled must not contain
* any constants and the try-finally must not have a catch clause.
*/
try {
eval('try {} finally {}');
} catch (e) {
print(e.stack || e);
}
print('still here');
Loading…
Cancel
Save