summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1226888.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/gc/bug-1226888.js')
-rw-r--r--js/src/jit-test/tests/gc/bug-1226888.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-1226888.js b/js/src/jit-test/tests/gc/bug-1226888.js
new file mode 100644
index 000000000..9ae6b4a50
--- /dev/null
+++ b/js/src/jit-test/tests/gc/bug-1226888.js
@@ -0,0 +1,19 @@
+if (!this.hasOwnProperty("TypedObject"))
+ quit();
+
+setJitCompilerOption('ion.forceinlineCaches', 1);
+// Adapted from randomly chosen test: js/src/jit-test/tests/TypedObject/jit-write-references.js
+with({}) {}
+v = new new TypedObject.StructType({
+ f: TypedObject.Any
+})
+gc();
+function g() {
+ v.f = {
+ Object
+ };
+ v.f;
+}
+for (var i = 0; i < 9; i++) {
+ g();
+}