blob: ddf863583c99c4f3c1975acb3f509c1d6628d72b [file] [log] [blame]
"use strict";
function foo() {
function bar(i) {
return this;
}
function inner() {
let result;
for (let i = 0; i < 1000000; i++)
result = bar(i);
return result;
}
noInline(inner);
return inner();
}
let result = foo();
if (result !== undefined)
throw new Error("Bad result");