Commit 8b6c0143 authored by machenbach's avatar machenbach Committed by Commit bot

[test] Slim down mjsunit/apply.

BUG=

Review URL: https://codereview.chromium.org/1668833002

Cr-Commit-Position: refs/heads/master@{#33731}
parent 1ce720f2
......@@ -114,7 +114,7 @@ function al() {
return arguments.length + arguments[arguments.length - 1];
}
for (var j = 1; j < 0x4000000; j <<= 1) {
for (var j = 1; j < 0x400000; j <<= 1) {
try {
var a = %NormalizeElements([]);
a.length = j;
......@@ -122,7 +122,7 @@ for (var j = 1; j < 0x4000000; j <<= 1) {
assertEquals(42 + j, al.apply(345, a));
} catch (e) {
assertTrue(e.toString().indexOf("Maximum call stack size exceeded") != -1);
for (; j < 0x4000000; j <<= 1) {
for (; j < 0x400000; j <<= 1) {
var caught = false;
try {
a = %NormalizeElements([]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment