Closed
Bug 796327
Opened 12 years ago
Closed 12 years ago
Make ArrayBufferView visible
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
INVALID
People
(Reporter: Yoric, Unassigned)
References
(Blocks 1 open bug)
Details
At the moment, there does not seem to be an object ArrayBufferView accessible to JavaScript code. A direct consequence is that there is no good way to check whether a given object is a view.
I may misunderstand the specifications of typed arrays, but I have the impression that ArrayBufferView should be visible.
![]() |
||
Comment 1•12 years ago
|
||
Spec currently says "[NoInterfaceObject]", so no, there should be no window.ArrayBufferView per spec.
You may also be interested in this thread:
http://www.khronos.org/webgl/public-mailing-list/archives/1206/msg00251.html
http://www.khronos.org/webgl/public-mailing-list/archives/1206/msg00252.html
http://www.khronos.org/webgl/public-mailing-list/archives/1206/msg00253.html
http://www.khronos.org/webgl/public-mailing-list/archives/1206/msg00254.html
which led to the current spec language...
Reporter | ||
Comment 2•12 years ago
|
||
Ah, I missed that.
Well, I find this a little strange, but if this is in the spec...
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Comment 3•12 years ago
|
||
Per recent discussion on public_webgl, there was agreement that [NoInterfaceObject] should be removed from ArrayBufferView, which has been done. The typed array conformance tests at http://www.khronos.org/registry/webgl/sdk/tests/conformance/typedarrays/array-unit-tests.html have been updated.
Reopening this bug to track exposure of ArrayBufferView in Firefox. Note associated Chromium bug https://code.google.com/p/chromium/issues/detail?id=60449 .
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Updated•12 years ago
|
Blocks: webgl-1.0.2
![]() |
||
Comment 4•12 years ago
|
||
Where is the latest copy of the typed array spec? I'm looking at http://www.khronos.org/registry/typedarray/specs/latest/#6 and it still says this:
[NoInterfaceObject]
interface ArrayBufferView {
readonly attribute ArrayBuffer buffer;
readonly attribute unsigned long byteOffset;
readonly attribute unsigned long byteLength;
};
Comment 5•12 years ago
|
||
According to http://crbug.com/247561 ArrayBufferView is going away. Instead, there will be an ArrayBuffer.isView() that can be used for type checking.
![]() |
||
Comment 6•12 years ago
|
||
I guess we can close this bug, then?
Comment 7•12 years ago
|
||
Sounds like we don't need to expose it as a constructor. But it's still unclear to me whether it needs to be on the prototype chain or not.
Comment 8•12 years ago
|
||
The test at http://www.khronos.org/registry/webgl/sdk/tests/conformance/typedarrays/array-unit-tests.html looks like it doesn't require the extra prototype layer.
Comment 9•12 years ago
|
||
Should this morph into "implement ArrayBuffer.isView()", or should I file a different bug for that?
![]() |
||
Comment 10•12 years ago
|
||
Let's make it a new bug so readers don't have to wade through a bunch of now-irrelevant comments.
Comment 11•12 years ago
|
||
See bug 896105 for ArrayBuffer.isView.
![]() |
||
Updated•12 years ago
|
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•