summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-948423.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/gc/bug-948423.js')
-rw-r--r--js/src/jit-test/tests/gc/bug-948423.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-948423.js b/js/src/jit-test/tests/gc/bug-948423.js
new file mode 100644
index 000000000..702bedb28
--- /dev/null
+++ b/js/src/jit-test/tests/gc/bug-948423.js
@@ -0,0 +1,23 @@
+if (!this.hasOwnProperty("TypedObject"))
+ quit();
+
+var ArrayType = TypedObject.ArrayType;
+var StructType = TypedObject.StructType;
+var uint8 = TypedObject.uint8;
+var uint32 = TypedObject.uint32;
+var ObjectType = TypedObject.Object;
+function runTests() {
+ (function DimensionLinkedToUndimension() {
+ var FiveUintsA = uint32.array(5);
+ var FiveUintsB = uint32.array(5);
+ assertEq(true,
+ FiveUintsA.equivalent(FiveUintsB)
+ );
+ })();
+ (function PrototypeHierarchy() {
+ schedulegc(3);
+ var Uint8s = uint8.array(5);
+ })();
+}
+
+runTests();