summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-948423.js
blob: 702bedb280ffa3ae292f55072526fa76d524d604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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();