blob: 7acf6e76af37273cdb060eab7b08c22d7260f2db [file] [log] [blame]
description("Ensure that we correctly tearoff the arguments objects when throwing from inlined function");
var fiftiethArguments = null;
function g(a) { if (a === 50) fiftiethArguments = arguments; f(); }
function f() { doStuff(); }
function doStuff() { throw {}; }
for (var i = 0; i < 100; i++) { try { g(i) } catch (e) { } }
shouldBe("fiftiethArguments[0]", "50");
shouldBe("fiftiethArguments.length", "1");