WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 210980
204054
WebAssembly exception names
https://bugs.webkit.org/show_bug.cgi?id=204054
Summary
WebAssembly exception names
Jan M
Reported
2019-11-09 15:43:55 PST
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")')
Attachments
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2023-03-07 16:52:56 PST
*** This bug has been marked as a duplicate of
bug 210980
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug