diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/auto-regress/bug1335619.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/auto-regress/bug1335619.js b/js/src/jit-test/tests/auto-regress/bug1335619.js new file mode 100644 index 0000000000..574fa1fcc5 --- /dev/null +++ b/js/src/jit-test/tests/auto-regress/bug1335619.js @@ -0,0 +1,11 @@ +// jsfunfuzz-generated +x = []; +y = x.push(Set, 1); +Array.prototype.shift.call(x); +// Adapted from randomly chosen test: js/src/tests/ecma_5/String/match-defines-match-elements.js +Object.defineProperty(Array.prototype, 1, { + set: function() {} +}) +// jsfunfuzz-generated +Array.prototype.splice.call(x, 3, {}, y); +new Set(x); |