Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMomtchil Momtchev <momtchil@momtchev.com>2022-04-13 18:18:55 +0300
committerGitHub <noreply@github.com>2022-04-13 18:18:55 +0300
commitd4d78361f2bb294b2159caa9648ce0b8abd41e69 (patch)
treeefe3ecbb8e4462c8f0d2abd3974f7c55649ca546 /doc
parent3caa2c1a005652fdb3e896ef940cd5ffe5fdff10 (diff)
doc: fix the example for embedders
Refs: #42670 PR-URL: https://github.com/nodejs/node/pull/42671 Fixes: https://github.com/nodejs/node/issues/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>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/embedding.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/api/embedding.md b/doc/api/embedding.md
index e6bcc5d63b8..c4707b4caf9 100644
--- a/doc/api/embedding.md
+++ b/doc/api/embedding.md
@@ -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());