From 4146be182337dd150984d91ca9d5e4148b81917c Mon Sep 17 00:00:00 2001 From: test262-automation Date: Fri, 21 Dec 2018 19:20:51 +0000 Subject: [PATCH] [javascriptcore-test262-automation] Changes from https://github.com/webkit/webkit.git at sha 801a7d15df on Fri Dec 21 2018 19:18:17 GMT+0000 (Coordinated Universal Time) --- ...ityCheck-should-use-construct-codeBlock.js | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 implementation-contributed/javascriptcore/stress/stack-overflow-frame-for-construct-arityCheck-should-use-construct-codeBlock.js diff --git a/implementation-contributed/javascriptcore/stress/stack-overflow-frame-for-construct-arityCheck-should-use-construct-codeBlock.js b/implementation-contributed/javascriptcore/stress/stack-overflow-frame-for-construct-arityCheck-should-use-construct-codeBlock.js new file mode 100644 index 0000000000..6c3700c2aa --- /dev/null +++ b/implementation-contributed/javascriptcore/stress/stack-overflow-frame-for-construct-arityCheck-should-use-construct-codeBlock.js @@ -0,0 +1,27 @@ +//@ requireOptions("--maxPerThreadStackUsage=1572864") + +function foo(a, b, c) { + try { + throw new Error(); + } catch { + hello(); + } +}; + +function Bar(d, e) { + hello(); +} + +function hello(f) { + new Bar(0); +}; + +var exception; +try { + foo(); +} catch(e) { + exception = e; +} + +if (exception != "RangeError: Maximum call stack size exceeded.") + throw "FAILED";