summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug579602.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testBug579602.js')
-rw-r--r--js/src/jit-test/tests/basic/testBug579602.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testBug579602.js b/js/src/jit-test/tests/basic/testBug579602.js
new file mode 100644
index 0000000000..3ad40a64ad
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testBug579602.js
@@ -0,0 +1,21 @@
+// don't panic
+
+f = function*() {
+ x = yield
+}
+rv = f()
+for (a of rv) (function() {})
+x = new Proxy({}, (function() {
+ return {
+ defineProperty: gc
+ }
+})());
+with({
+ d: (({
+ x: Object.defineProperty(x, "", ({
+ set: Array.e
+ }))
+ }))
+}) {}
+
+// don't crash