Closed Bug 898630 Opened 11 years ago Closed 10 years ago

Struct constructors don't take an initializer

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bbenvie, Unassigned)

References

Details

> var Foo = new StructType({ bar: uint8 });
> new Foo({ bar: 100 }).bar // should be 100 but is 0
As of today:

js> var Foo = new TypedObject.StructType({ bar: TypedObject.uint8 });
js> new Foo({bar: 100}).bar
100
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.