mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
9 years ago
1 changed files with 17 additions and 0 deletions
@ -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…
Reference in new issue