Closed Bug 896697 Opened 11 years ago Closed 10 years ago

Change TypedArray.{buffer, byteLength, byteOffset, length} to be accessors on %TypedArray%.prototype

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 896116

People

(Reporter: bbenvie, Unassigned)

References

(Blocks 1 open bug)

Details

The four own properties (buffer, byteLength, byteOffset, and length) have been changed to accessors that live on %TypedArray%.prototype. See ES6 spec draft (July 2013 revision) sections 15.13.6.3.2, 15.13.6.3.3, 15.13.6.3.4, and 15.13.6.3.5.
I was a bit mistaken, these are already accessors. However, they do still need to be moved from each TypedArray type's prototype to a singular getter on %TypedArray%.prototype.
I think it's safe to say at this point that when %TypedArray% happens, the accessors will move without particular effort, so I'm going to mark a dup here.  I might do %TypedArray% myself soon, actually, for various reasons, and if so this'll certainly be in mind.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.