summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/args-redefine-length-3.js
blob: a4d6823acfa5d5470485028ec3e2cfa9ec8710a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function t()
{
  var a = arguments;
  Object.defineProperty(a, "length", { });
  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, true);
}
t();