summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1681677.js
blob: 157a28740b6ca94dd807d27712d1b9d301fa6163 (plain)
1
2
3
4
5
6
7
var a = [1];
var p = {__proto__: Array.prototype};
Object.setPrototypeOf(a, p);
for (var i = 0; i < 100; ++i) {
  var x = a.slice(0);
  assertEq(x.__proto__, Array.prototype);
}