summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/args-redefine-length-2.js
blob: fe1c9cf2fe17501fc04a1f95ca608e52db0f49e5 (plain)
1
2
3
4
5
6
7
8
function t()
{
  var a = arguments;
  Object.defineProperty(a, "length", { value: 17 });
  for (var i = 0; i < 5; i++)
    assertEq(a.length, 17);
}
t();