On Oct 27, 2014, at 5:03 PM, Jeff Walden wrote:

> I was just tracing through typed array construction behavior, and it looks to 
> me like |new Uint8Array()| creates an object via 
> OrdinaryCreateFromConstructor, not by delegating to 
> %TypedArray%.[[CreateAction]].  This creates an object with the right 
> prototype chain but none of a typed array's internal slots.  Error and 
> NativeError seem to have [[CreateAction]] slots both; I'd have thought the 
> typed array system would have similar structure.
> 
> Or am I missing something here?  I'm just off a cross-country flight 
> following a weekend with very erratic sleep hours, so I don't have much 
> confidence in my reading being fully on-target.


The individual typed array constructors are supposed to inherit their 
[[CreateAction]] from %TypedArray% and use the definition provided in 
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-properties-of-the-%typedarray%-intrinsic-object
 .  I probably need to be more explicit about this in 
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-properties-of-the-typedarray-constructors
 

allen


_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to