summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/args-redefine-length-6.js
blob: a4b768d4bd14fdadde35211417c738c052c7c6ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function t()
{
  var a = arguments;
  Object.defineProperty(a, "length", { configurable: false });
  for (var i = 0; i < 5; i++)
    assertEq(a.length, 0);

  var desc = Object.getOwnPropertyDescriptor(a, "length");
  assertEq(desc.value, 0);
  assertEq(desc.writable, true);
  assertEq(desc.enumerable, false);
  assertEq(desc.configurable, false);
}
t();