summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/TypedObject/bug973563.js
blob: 2112cc023ffbb99103d7d6f978aeebe35081065f (plain)
1
2
3
4
5
6
7
8
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}});