mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1150052: report exceptions that occur in MozLoop object APIs directly to the console, so we'll be able to recognize errors better. r=Standard8
This commit is contained in:
parent
7e1fd890cd
commit
6b09a29fc4
@ -172,6 +172,7 @@ const injectObjectAPI = function(api, targetWindow) {
|
||||
lastParam = cloneValueInto(lastParam, api);
|
||||
return cloneValueInto(api[func](...params, lastParam), targetWindow);
|
||||
} catch (ex) {
|
||||
MozLoopService.log.error(func + " error: ", ex, params, lastParam);
|
||||
return cloneValueInto(ex, targetWindow);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user