Closed
Bug 1054029
Opened 9 years ago
Closed 9 years ago
TypedArrays do not work with JS-implemented WebIDL
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 929609
People
(Reporter: psiddh, Unassigned)
References
(Blocks 1 open bug)
Details
Using TypedArrays such as Uint8Array do not generate MozXXXBindings correctly and the compilation fails subsequently. For instance, in the webidl , if the declaration happens to be the following, compilation fails while trying to generate MozXXXBindings. [Throws] Promise<void> testInterface(Uint8Array aid); However if it is changes to sequence of octets , compilation seems to be ok and bindings do get generated properly. [Throws] Promise<void> testInterface(sequence<octet> aid); After discussing with bholley, raising the bug and 'needinfo Andrew McCreight :mccr8'. There is an ongoing proposal (initial draft) on Secure Element APIs 'https://bugzilla.mozilla.org/show_bug.cgi?id=879861' and it should ideally use typed Arrays in its APIs. This API is slated for 2.2 REL.
Updated•9 years ago
|
Comment 1•9 years ago
|
||
Do you mean it doesn't work with JS-implemented WebIDL, or it doesn't work at all?
OS: Gonk (Firefox OS) → All
Hardware: ARM → All
Version: unspecified → Trunk
Comment 3•9 years ago
|
||
Ah, right, you did say that in the name of the bug.
Summary: Using TypedArrays on JS implemented interfaces → TypedArrays do not work with JS-implemented WebIDL
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•