chore: remove redundant code in node integration (#33500)
This commit is contained in:
parent
df3cfb663c
commit
c119b1ebef
11 changed files with 32 additions and 108 deletions
|
@ -56,7 +56,7 @@ void WebWorkerObserver::WorkerScriptReadyForEvaluation(
|
|||
isolate, v8::MicrotasksScope::kDoNotRunMicrotasks);
|
||||
|
||||
// Start the embed thread.
|
||||
node_bindings_->PrepareMessageLoop();
|
||||
node_bindings_->PrepareEmbedThread();
|
||||
|
||||
// Setup node tracing controller.
|
||||
if (!node::tracing::TraceEventHelper::GetAgent())
|
||||
|
@ -78,7 +78,7 @@ void WebWorkerObserver::WorkerScriptReadyForEvaluation(
|
|||
node_bindings_->set_uv_env(env);
|
||||
|
||||
// Give the node loop a run to make sure everything is ready.
|
||||
node_bindings_->RunMessageLoop();
|
||||
node_bindings_->StartPolling();
|
||||
}
|
||||
|
||||
void WebWorkerObserver::ContextWillDestroy(v8::Local<v8::Context> context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue