summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/TypedObject/bug1265690.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/TypedObject/bug1265690.js')
-rw-r--r--js/src/jit-test/tests/TypedObject/bug1265690.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/TypedObject/bug1265690.js b/js/src/jit-test/tests/TypedObject/bug1265690.js
new file mode 100644
index 000000000..7e20a2ed1
--- /dev/null
+++ b/js/src/jit-test/tests/TypedObject/bug1265690.js
@@ -0,0 +1,14 @@
+if (!('oomTest' in this) || !this.hasOwnProperty("TypedObject"))
+ quit();
+lfCodeBuffer = `
+ ArrayType = TypedObject.ArrayType;
+ var StructType = TypedObject.StructType;
+ float32 = TypedObject.float32;
+ Point = new ArrayType(float32, 3);
+ var Line = new StructType({ Point });
+ new ArrayType(Line, 3);
+`;
+loadFile(lfCodeBuffer);
+function loadFile(lfVarx) {
+ oomTest(function() { eval(lfVarx) });
+}