test: Node integration in web workers

This commit is contained in:
Cheng Zhao 2017-03-15 20:07:28 +09:00
parent ab83aa0bfd
commit 033aa16e04
8 changed files with 77 additions and 1 deletions

View file

@ -441,6 +441,7 @@ void AtomRendererClient::AddSupportedKeySystems(
void AtomRendererClient::DidInitializeWorkerContextOnWorkerThread(
v8::Local<v8::Context> context) {
LOG(ERROR) << "DidInitializeWorkerContextOnWorkerThread";
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kNodeIntegrationInWorker)) {
WebWorkerObserver::GetCurrent()->ContextCreated(context);