blob: e15c5c7a4b1025d82dda2f11ba344230dd3605bd [file] [log] [blame]
description("Make sure arguments tearoff works correctly when a functions activation has not been created.");
function f1(a,b,c,d) {
if (0) (function (){ a; });
a = true;
return arguments[0];
}
shouldBeTrue("f1(false)");
function f2(a,b,c,d) {
"use strict";
a = false;
if (0) (function (){ a; });
return arguments[0];
}
shouldBeTrue("f2(true)");
testPassed("Didn't crash");