Bug 1508287 - Ensure exposing console to modules loaded for worker server. r=yulia

Without this devtools/server/tests/unit/test_breakpoint-22.js fails in protocol.js
writeError function when trying to use console object.

MozReview-Commit-ID: JFhFboHugUh

Differential Revision: https://phabricator.services.mozilla.com/D12309

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Alexandre Poirot 2018-11-22 15:23:15 +00:00
parent 1e43108db5
commit 807406b3ec

View File

@ -564,6 +564,7 @@ this.worker = new WorkerDebuggerLoader({
"lazyRequireModule": lazyRequireModule,
"retrieveConsoleEvents": this.retrieveConsoleEvents,
"setConsoleEventHandler": this.setConsoleEventHandler,
"console": console,
},
loadSubScript: loadSubScript,
modules: {