Closed
Bug 898630
Opened 12 years ago
Closed 11 years ago
Struct constructors don't take an initializer
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
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
Comment 1•11 years ago
|
||
As of today:
js> var Foo = new TypedObject.StructType({ bar: TypedObject.uint8 });
js> new Foo({bar: 100}).bar
100
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•