diff --git a/ecmascript-testcases/test-bug-call-valstack-segfault-gh107.js b/ecmascript-testcases/test-bug-call-valstack-segfault-gh107.js new file mode 100644 index 00000000..77191cf3 --- /dev/null +++ b/ecmascript-testcases/test-bug-call-valstack-segfault-gh107.js @@ -0,0 +1,18 @@ +/* + * https://github.com/svaarala/duktape/issues/107 + */ + +/*=== +still here +===*/ + +function test() { + Function().apply(1,Array(10000)); + print('still here'); +} + +try { + test(); +} catch (e) { + print(e.stack || e); +}