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)
Core
JavaScript: WebAssembly
Tracking
()
RESOLVED
FIXED
mozilla64
| Tracking | Status | |
|---|---|---|
| firefox64 | --- | fixed |
People
(Reporter: Ms2ger, Assigned: lth)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
2.49 KB,
patch
|
bbouvier
:
review+
|
Details | Diff | Splinter Review |
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).
| Assignee | ||
Comment 1•7 years ago
|
||
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
| Assignee | ||
Comment 2•7 years ago
|
||
Review for correctness; it may still not land, see my previous comment.
Attachment #9009540 -
Flags: review?(bbouvier)
| Assignee | ||
Updated•7 years ago
|
See Also: → https://github.com/WebAssembly/spec/issues/878
Comment 3•7 years ago
|
||
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
Comment 5•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•