diff options
Diffstat (limited to 'js/src/jit-test/tests/warp/bug1681677.js')
-rw-r--r-- | js/src/jit-test/tests/warp/bug1681677.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1681677.js b/js/src/jit-test/tests/warp/bug1681677.js new file mode 100644 index 0000000000..157a28740b --- /dev/null +++ b/js/src/jit-test/tests/warp/bug1681677.js @@ -0,0 +1,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); +} |