summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1278832.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/gc/bug-1278832.js')
-rw-r--r--js/src/jit-test/tests/gc/bug-1278832.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-1278832.js b/js/src/jit-test/tests/gc/bug-1278832.js
new file mode 100644
index 0000000000..aa9e269b3d
--- /dev/null
+++ b/js/src/jit-test/tests/gc/bug-1278832.js
@@ -0,0 +1,12 @@
+function assertThrowsInstanceOf() {}
+gczeal(15)
+try {
+ gczeal(10, 2)
+} catch (Atomics) {}
+for (define of[__defineSetter__]) {
+ let nonCallable = [{}]
+ for (let value of nonCallable) assertThrowsInstanceOf(TypeError)
+ key = {
+ [Symbol]() {}
+ }
+}