diff options
Diffstat (limited to 'js/src/jit-test/tests/ion/bug784385.js')
-rw-r--r-- | js/src/jit-test/tests/ion/bug784385.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug784385.js b/js/src/jit-test/tests/ion/bug784385.js new file mode 100644 index 000000000..52d331d97 --- /dev/null +++ b/js/src/jit-test/tests/ion/bug784385.js @@ -0,0 +1,9 @@ +Object.defineProperty(Object.prototype, "a", { + set: function(a) { eval(""); return 123; } +}); +var obj = {}; +var obj2 = {x: 1}; +for (var i = 0; i < 100; i++) { + var res = (obj.a = obj2); + res.x = 0xbeef; +} |