You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original issue 317 created by magreenblatt on 2011-08-30T15:43:17.000Z:
Currently, JavaScript exceptions resulting from calling CefV8Value::ExecuteFunction() are returned as a string. It would be nice if these exceptions could be re-thrown for handling by the JavaScript application. For example:
// JS application starts
function jsFoo() { throw "oops"; }
window.registerCallback(jsFoo); // native C++ method
// JS asynchronous operation
try {
window.execCallback(); // native C++ method that executes jsFoo()
} catch (e) {
// got "oops" here
}
The text was updated successfully, but these errors were encountered:
Comment 1. originally posted by magreenblatt on 2011-11-10T22:58:01.000Z:
Revision 371 introduces CefV8Exception for returning detailed exception information from CefV8Value::ExecuteFunction*() and adds the ability to re-throw exceptions.
Original report by me.
Original issue 317 created by magreenblatt on 2011-08-30T15:43:17.000Z:
Currently, JavaScript exceptions resulting from calling CefV8Value::ExecuteFunction() are returned as a string. It would be nice if these exceptions could be re-thrown for handling by the JavaScript application. For example:
// JS application starts
function jsFoo() { throw "oops"; }
window.registerCallback(jsFoo); // native C++ method
// JS asynchronous operation
try {
window.execCallback(); // native C++ method that executes jsFoo()
} catch (e) {
// got "oops" here
}
The text was updated successfully, but these errors were encountered: