blob: f5607f4ca4ef0669880d8bbcef7da4470b380360 [file] [log] [blame]
let warm = 1000;
function foo(f) {
return f.arguments;
}
noInline(foo);
function bar() {
for (let i = 0; i < warm; ++i)
foo(bar);
}
function baz() {
"use strict";
foo(baz);
}
bar();
let caught = false;
try {
baz();
} catch (e) {
caught = true;
}
if (!caught)
throw new Error(`bad!`);