blob: 7e755d73f2b7e888c348510753fe9693e642afd5 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function f() { return 40; }
function test({arg}) {
function arg() { return 41; }
return arg;
}
noInline(test);
for (var i = 0; i < 1000; i++) {
if (test({arg: f})() !== 41)
throw new Error("bad value");
}