diff options
Diffstat (limited to 'js/src/jit-test/tests/TypedObject/bug976530.js')
-rw-r--r-- | js/src/jit-test/tests/TypedObject/bug976530.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/TypedObject/bug976530.js b/js/src/jit-test/tests/TypedObject/bug976530.js new file mode 100644 index 000000000..650a26040 --- /dev/null +++ b/js/src/jit-test/tests/TypedObject/bug976530.js @@ -0,0 +1,10 @@ +// |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(); |