The current exception constructors just throw instead of doing The Right Thing. There's a small quibble about whether just calling the constructor as a function should be a TypeError: https://github.com/WebAssembly/design/issues/825
Created attachment 292286 [details] patch
This was trickier than I thought it was! It's almost there: I don't think I'm setting the .name property correctly though: if you do String(new WebAssembly.CompileError()) then you get "Error", not "CompileError". Any idea what I've missed?
Created attachment 292291 [details] patch The previous patch was missing a bunch of `#if ENABLE(WEBASSEMBLY)` which made the 32-bit builds *very* sad. Don't be a jerk: make it happy.
Comment on attachment 292291 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=292291&action=review r=me with typo fix. > JSTests/ChangeLog:9 > + - The error constructors used to thow (e.g. `new WebAssembly.CompileError()`). thow => throw > Source/JavaScriptCore/ChangeLog:9 > + - The error constructors used to thow (e.g. `new WebAssembly.CompileError()`). Ditto.
Created attachment 292293 [details] patch Fix typo.
Comment on attachment 292293 [details] patch Rejecting attachment 292293 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'validate-changelog', '--check-oops', '--non-interactive', 292293, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in JSTests/ChangeLog contains OOPS!. Full output: http://webkit-queues.webkit.org/results/2334501
I filed the following to fix .name separately: https://bugs.webkit.org/show_bug.cgi?id=163768
Created attachment 292295 [details] patch Fix reviewer. I'll get used to this workflow some day...
Comment on attachment 292295 [details] patch Clearing flags on attachment: 292295 Committed r207650: <http://trac.webkit.org/changeset/207650>
All reviewed patches have been landed. Closing bug.