The default bug view has changed. See this FAQ.

Add a way to reflect typed arrays in the new DOM bindings

RESOLVED FIXED in mozilla15

Status

()

Core
DOM
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: bz, Assigned: bz)

Tracking

unspecified
mozilla15
x86
Mac OS X
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

This is just the data structure so far; the codegen bits are still to come.
Created attachment 617387 [details] [diff] [review]
Add some structs that can be used to represent typed arrays in DOM bindings.
Attachment #617387 - Flags: review?(peterv)
So we don't want/need to expose a way to get the data correctly typed based on the underlying array from ArrayBufferView?
Not yet; WebGL doesn't need it.

Given DataViews, it's not quite clear what "correctly typed" would even mean in general for ArrayBufferView.  Things that want to take some subset of ArrayBuferViews that happen to be actual typed arrays should be using overloads in the IDL, I would think.
And note that in extreme corner cases the callee does have the JSOject*.
Attachment #617387 - Flags: review?(peterv) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/41e810dd264f
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla15
https://hg.mozilla.org/mozilla-central/rev/41e810dd264f
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Duplicate of this bug: 742209
Blocks: 749864
You need to log in before you can comment on or make changes to this bug.