зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1592560 - Avoid using Reflect in workers, r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D51282 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
8ea1934f15
Коммит
d293e937fe
|
@ -170,6 +170,12 @@ function getEvalResult(string, evalOptions, bindings, frame, dbgWindow) {
|
|||
}
|
||||
|
||||
function parseErrorOutput(dbgWindow, string) {
|
||||
// Reflect is not usable in workers, so return early to avoid logging an error
|
||||
// to the console when loading it.
|
||||
if (isWorker) {
|
||||
return;
|
||||
}
|
||||
|
||||
let ast;
|
||||
// Parse errors will raise an exception. We can/should ignore the error
|
||||
// since it's already being handled elsewhere and we are only interested
|
||||
|
|
Загрузка…
Ссылка в новой задаче