8000 doc: fix the example for embedders · darth-coder-js/node@d4d7836 · GitHub
[go: up one dir, main page]

Skip to content

Commit d4d7836

Browse files
authored
doc: fix the example for embedders
Refs: nodejs#42670 PR-URL: nodejs#42671 Fixes: nodejs#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>
1 parent 3caa2c1 commit d4d7836

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/api/embedding.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ int RunNodeInstance(MultiIsolatePlatform* platform,
124124
{
125125
Locker locker(isolate);
126126
Isolate::Scope isolate_scope(isolate);
127+
HandleScope handle_scope(isolate);
127128
// The v8::Context needs to be entered when node::CreateEnvironment() and
128129
// node::LoadEnvironment() are being called.
129130
Context::Scope context_scope(setup->context());

0 commit comments

Comments
 (0)
0