[Webkit-unassigned] [Bug 204054] New: WebAssembly exception names
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Nov 9 15:43:55 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=204054
Bug ID: 204054
Summary: WebAssembly exception names
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebAssembly
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mail at janmidtgaard.dk
The WebAssembly exceptions (also thrown by the Wasm engine) have name properties
deviating from the other 3 major JS/Wasm engines.
Ideally a WebAssembly.CompileError should have name "CompileError", etc.
Consider:
let e1 = new WebAssembly.CompileError("a compile error")
let e2 = new WebAssembly.LinkError("a link error")
let e3 = new WebAssembly.RuntimeError("a runtime error")
print(e1.name, e1);
print(e2.name, e2);
print(e3.name, e3);
and compare the output across v8, spidermonkey, chakra, and javascriptcore:
$ v8 exceptions.js
CompileError CompileError: a compile error
LinkError LinkError: a link error
RuntimeError RuntimeError: a runtime error
$ sm exceptions.js
CompileError CompileError: a compile error
LinkError LinkError: a link error
RuntimeError RuntimeError: a runtime error
$ ch exceptions.js
CompileError CompileError: a compile error
LinkError LinkError: a link error
RuntimeError RuntimeError: a runtime error
$ jsc exceptions.js
Error Error: a compile error (evaluating 'new WebAssembly.CompileError("a compile error")')
Error Error: a link error (evaluating 'new WebAssembly.LinkError("a link error")')
Error Error: a runtime error (evaluating 'new WebAssembly.RuntimeError("a runtime error")')
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191109/5edd183b/attachment-0001.htm>
More information about the webkit-unassigned
mailing list