Skip to content

Commit

Permalink
src: provide a variant of LoadEnvironment taking a callback
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed May 20, 2021
1 parent e997b97 commit f1fcc87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/app/node_main.cc
Expand Up @@ -240,7 +240,7 @@ int NodeMain(int argc, char* argv[]) {
}

v8::HandleScope scope(isolate);
node::LoadEnvironment(env);
node::LoadEnvironment(env, node::StartExecutionCallback{});

env->set_trace_sync_io(env->options()->trace_sync_io);

Expand Down
2 changes: 1 addition & 1 deletion shell/common/node_bindings.cc
Expand Up @@ -529,7 +529,7 @@ node::Environment* NodeBindings::CreateEnvironment(
}

void NodeBindings::LoadEnvironment(node::Environment* env) {
node::LoadEnvironment(env);
node::LoadEnvironment(env, node::StartExecutionCallback{});
gin_helper::EmitEvent(env->isolate(), env->process_object(), "loaded");
}

Expand Down

0 comments on commit f1fcc87

Please sign in to comment.