RESOLVED FIXED 93223
[V8] Replace throwError(ExceptionCode, Isolate*) with setDOMException(ExceptionCode, Isolate*) in CodeGeneratorV8.pm
https://bugs.webkit.org/show_bug.cgi?id=93223
Summary [V8] Replace throwError(ExceptionCode, Isolate*) with setDOMException(Excepti...
Kentaro Hara
Reported 2012-08-05 21:44:03 PDT
Now throwError(ExceptionCode, Isolate*) is equivalent to setDOMException(ExceptionCode, Isolate*). We can replace the former with the latter. After this replacement, the rule becomes simple and sane: "Use throwError() for throwing JavaScript errors, use setDOMException() for throwing DOM exceptions".
Attachments
Patch (9.14 KB, patch)
2012-08-05 21:55 PDT, Kentaro Hara
no flags
Kentaro Hara
Comment 1 2012-08-05 21:55:20 PDT
Kentaro Hara
Comment 2 2012-08-05 23:18:25 PDT
I couldn't replace throwError(ExceptionCode) with setDOMException(ExceptionCode, Isolate*) in V8Utilities::extractTransferables(), because extractTransferables() does not know an Isolate. I will upload follow-up patches to pass an Isolate to Dictionary, and then to extractTransferables().
Kentaro Hara
Comment 3 2012-08-05 23:19:47 PDT
(In reply to comment #2) > I couldn't replace throwError(ExceptionCode) with setDOMException(ExceptionCode, Isolate*) in V8Utilities::extractTransferables(), because extractTransferables() does not know an Isolate. I will upload follow-up patches to pass an Isolate to Dictionary, and then to extractTransferables(). Nit: the above comment should have been posted to bug 93226.
Adam Barth
Comment 4 2012-08-07 17:03:00 PDT
Comment on attachment 156592 [details] Patch ok
WebKit Review Bot
Comment 5 2012-08-07 17:56:45 PDT
Comment on attachment 156592 [details] Patch Clearing flags on attachment: 156592 Committed r124955: <http://trac.webkit.org/changeset/124955>
WebKit Review Bot
Comment 6 2012-08-07 17:56:48 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.