diff options
Diffstat (limited to 'js/src/jit-test/tests/TypedObject/bug973563.js')
-rw-r--r-- | js/src/jit-test/tests/TypedObject/bug973563.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/TypedObject/bug973563.js b/js/src/jit-test/tests/TypedObject/bug973563.js new file mode 100644 index 000000000..2112cc023 --- /dev/null +++ b/js/src/jit-test/tests/TypedObject/bug973563.js @@ -0,0 +1,9 @@ +// Test that empty sized structs don't trigger any assertion failures. +// Public domain. + +if (!this.hasOwnProperty("TypedObject")) + quit(); + +var PointType = new TypedObject.StructType({}); +var LineType = new TypedObject.StructType({source: PointType, target: PointType}); +var fromAToB = new LineType({source: {x: 22, y: 44}, target: {x: 66, y: 88}}); |