diff --git a/ecmascript-testcases/test-dev-compiler-reclimit1.js b/ecmascript-testcases/test-dev-compiler-reclimit1.js index 9f14deda..01c2b0e0 100644 --- a/ecmascript-testcases/test-dev-compiler-reclimit1.js +++ b/ecmascript-testcases/test-dev-compiler-reclimit1.js @@ -35,8 +35,8 @@ try { } try { - /* an internal error without other trouble should happen */ - print(eval(buildParenExpr(1000))); + /* a RangeError without other trouble should happen */ + print(eval(buildParenExpr(5000))); } catch (e) { print(e.name); } @@ -67,7 +67,7 @@ try { } try { - print(eval(buildBlockExpr(1000))); + print(eval(buildBlockExpr(5000))); } catch (e) { print(e.name); } diff --git a/ecmascript-testcases/test-dev-compiler-reclimit2.js b/ecmascript-testcases/test-dev-compiler-reclimit2.js index 7bc4e455..7b958c8f 100644 --- a/ecmascript-testcases/test-dev-compiler-reclimit2.js +++ b/ecmascript-testcases/test-dev-compiler-reclimit2.js @@ -40,7 +40,7 @@ try { try { // expression recursion limit prevents this, with both shallow/deep stacks - var inp = rep(500, '(') + "'never here'" + rep(500, ')'); + var inp = rep(2500, '(') + "'never here'" + rep(2500, ')'); print(eval(inp)); } catch (e) { print(e.name); @@ -65,7 +65,7 @@ try { try { // statement recursion limit prevents this, with both shallow/deep stacks - var inp = rep(500, '{') + "'test'" + rep(500, '}'); + var inp = rep(2500, '{') + "'test'" + rep(2500, '}'); print(eval(inp)); } catch (e) { print(e.name);