Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: fix the example for embedders
Refs: #42670
  • Loading branch information
mmomtchev committed Apr 9, 2022
commit b3c0526af2c6bcf287c6070644ecb83136c08754
1 change: 1 addition & 0 deletions doc/api/embedding.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ int RunNodeInstance(MultiIsolatePlatform* platform,
{
Locker locker(isolate);
Isolate::Scope isolate_scope(isolate);
HandleScope handle_scope(isolate);
// The v8::Context needs to be entered when node::CreateEnvironment() and
// node::LoadEnvironment() are being called.
Context::Scope context_scope(setup->context());
Expand Down