Closed Bug 1054029 Opened 9 years ago Closed 9 years ago
Arrays do not work with JS-implemented Web IDL
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.
Component: NFC → DOM
Product: Firefox OS → Core
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
I think it doesn't work with JS-implemented interfaces.
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
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.