refactor: use associated v8::Context for event setup (#37355)

refactor: use associated v8::Context for event setup
This commit is contained in:
Shelley Vohr 2023-02-22 10:03:46 +01:00 committed by GitHub
parent 32c60b29bb
commit 6395898a79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 7 deletions

View file

@ -47,7 +47,7 @@ void NodeService::Initialize(node::mojom::NodeServiceParamsPtr params) {
v8::HandleScope scope(js_env_->isolate());
node_bindings_->Initialize();
node_bindings_->Initialize(js_env_->isolate()->GetCurrentContext());
// Append program path for process.argv0
auto program = base::CommandLine::ForCurrentProcess()->GetProgram();