summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/non-extensible-array.js
blob: 133ec2bf12ad1e5a0202364e6d492e5f62b76842 (plain)
1
2
3
4
5
6
7
function foo(x) {
  Object.seal(x);
  x[3] = 4;
  assertEq("" + x, "1,2,3");
}
foo([1,2,3]);