Commit 9e6647c2 authored by ishell's avatar ishell Committed by Commit bot

Speedup some slow running stack-overflow tests.

BUG=chromium:505007
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#29747}
parent bfe700b8
......@@ -4,11 +4,15 @@
// Flags: --stack-size=100 --allow-natives-syntax
var count = 0;
function f() {
try {
f();
} catch(e) {
%GetDebugContext();
if (count < 100) {
count++;
%GetDebugContext();
}
}
}
f();
......@@ -5,11 +5,16 @@
// Flags: --stack-size=100 --allow-natives-syntax
function g() {}
var count = 0;
function f() {
try {
f();
} catch(e) {
%ExecuteInDebugContext(g);
if (count < 100) {
count++;
%ExecuteInDebugContext(g);
}
}
}
f();
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