blob: 650a260402fe59194a6d7d903af705ac2089f7dc [file] [log] [blame]
// |jit-test| error:Error
// Test that we don't permit structs whose fields exceed 32 bits.
if (!this.hasOwnProperty("TypedObject"))
throw new Error();
var Vec3u16Type = TypedObject.uint16.array((1073741823));
var PairVec3u16Type = new TypedObject.StructType({ fst: Vec3u16Type, snd: Vec3u16Type });
new PairVec3u16Type();