Comment #2 on issue 4315 by erights: some TypedArray static method properties non-config, non-writable
https://code.google.com/p/v8/issues/detail?id=4315

Allen points out that


Float32Array.from Float32Array.of Float64Array.from Float64Array.of Int16Array.from Int16Array.of Int32Array.from Int32Array.of Int8Array.from Int8Array.of Uint16Array.from Uint16Array.of Uint32Array.from Uint32Array.of Uint8Array.from Uint8Array.of Uint8ClampedArray.from Uint8ClampedArray.of


don't even exist in the ES6 spec. Instead, 'from' and 'of' are specified as properties of the %TypedArray% object (http://www.ecma-international.org/ecma-262/6.0/#sec-%typedarray%-intrinsic-object ), which is the [[Prototype]] of all of the concrete Typed Array constructors. Float32Array, Flat64Array, etc. all inherit a common definition of 'from' and 'of' from %TypedArray%.

Regarding the attributes values for 'from' and 'of'. The spec. says nothing special about them
   http://www.ecma-international.org/ecma-262/6.0/#sec-%typedarray%.from
   http://www.ecma-international.org/ecma-262/6.0/#sec-%typedarray%.of
so they should have the default attribute values used for built-in methods {[[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true} as specified in the second to last paragraph of http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-standard-built-in-objects

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to