Skip to content

Commit

Permalink
doc: fix the example for embedders
Browse files Browse the repository at this point in the history
Refs: #42670

PR-URL: #42671
Fixes: #42670
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
  • Loading branch information
Momtchil Momtchev authored and juanarbol committed May 31, 2022
1 parent abb15f5 commit d4bec32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/api/embedding.md
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

0 comments on commit d4bec32

Please sign in to comment.