Closed Bug 1490275 Opened 7 years ago Closed 7 years ago

In WebAssembly.Table constructor, call ToString on descriptor.element

Categories

(Core :: JavaScript: WebAssembly, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: Ms2ger, Assigned: lth)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Rather than the current isString() check. Per spec: https://heycam.github.io/webidl/#es-to-enumeration Tested in: wasm/jsapi/table/constructor.any.js (which runs in jstests and wpt).
I will post a fix this for review for the sake of compliance and since it'll be a while before there are other table types, but I am not completely sold that the Wasm JS API spec is correct in defining the element type as an enumeration value. I can easily envision a future where we have strongly (mono)typed tables, and an enumeration will not be adequate to represent the types of table elements. I'll file a bug on the spec repo to discuss this further.
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
Priority: -- → P3
Review for correctness; it may still not land, see my previous comment.
Attachment #9009540 - Flags: review?(bbouvier)
Comment on attachment 9009540 [details] [diff] [review] bug1490275-convert-enum-value.patch Review of attachment 9009540 [details] [diff] [review]: ----------------------------------------------------------------- Patch LGTM, and I think your reasoning above too, so we could wait for spec feedback. ::: testing/web-platform/meta/wasm/jsapi/table/constructor.any.js.ini @@ -1,2 @@ > [constructor.any.html] > - [Type conversion for descriptor.element] You can review the file, if there are no meta annotations anymore.
Attachment #9009540 - Flags: review?(bbouvier) → review+
Pushed by lhansen@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/25ab4136dd26 fix string conversion of enumeration value re WebIDL spec. r=bbouvier
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: