summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/bug1749460.js
blob: e78cf43f22e0c9d7fc9d64b1d197059654c22957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function opaque(x) {
  with ({}) {}
  return x;
}

function foo() {
  "use strict";
  Object.defineProperty(arguments, 0, {value: 1});
  return opaque(...arguments);
}

for (var i = 0; i < 50; i++) {
  assertEq(foo(0), 1);
}