Closed Bug 1054029 Opened 10 years ago Closed 10 years ago

TypedArrays do not work with JS-implemented WebIDL

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

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.
Blocks: 879861
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: 10 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.