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:
Brian Hackett 2019-11-04 09:08:05 +00:00
Родитель 8ea1934f15
Коммит d293e937fe
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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