Struct constructors don't take an initializer

RESOLVED WORKSFORME

Status

()

Core
JavaScript Engine
RESOLVED WORKSFORME
5 years ago
5 years ago

People

(Reporter: benvie, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
> 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
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.