Browse Source

increase reclimit test limits to match compiler deep stack config

pull/1/head
Sami Vaarala 11 years ago
parent
commit
0c770fa3df
  1. 6
      ecmascript-testcases/test-dev-compiler-reclimit1.js
  2. 4
      ecmascript-testcases/test-dev-compiler-reclimit2.js

6
ecmascript-testcases/test-dev-compiler-reclimit1.js

@ -35,8 +35,8 @@ try {
} }
try { try {
/* an internal error without other trouble should happen */ /* a RangeError without other trouble should happen */
print(eval(buildParenExpr(1000))); print(eval(buildParenExpr(5000)));
} catch (e) { } catch (e) {
print(e.name); print(e.name);
} }
@ -67,7 +67,7 @@ try {
} }
try { try {
print(eval(buildBlockExpr(1000))); print(eval(buildBlockExpr(5000)));
} catch (e) { } catch (e) {
print(e.name); print(e.name);
} }

4
ecmascript-testcases/test-dev-compiler-reclimit2.js

@ -40,7 +40,7 @@ try {
try { try {
// expression recursion limit prevents this, with both shallow/deep stacks // 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)); print(eval(inp));
} catch (e) { } catch (e) {
print(e.name); print(e.name);
@ -65,7 +65,7 @@ try {
try { try {
// statement recursion limit prevents this, with both shallow/deep stacks // 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)); print(eval(inp));
} catch (e) { } catch (e) {
print(e.name); print(e.name);

Loading…
Cancel
Save