From 080b1336cef9b74a639c86da8d0ceb9e227bf549 Mon Sep 17 00:00:00 2001 From: Momtchil Momtchev Date: Wed, 13 Apr 2022 17:18:55 +0200 Subject: [PATCH] doc: fix the example for embedders MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: #42670 PR-URL: https://github.com/nodejs/node/pull/42671 Fixes: https://github.com/nodejs/node/issues/42670 Reviewed-By: Darshan Sen Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Mestery Reviewed-By: Akhil Marsonya --- doc/api/embedding.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/embedding.md b/doc/api/embedding.md index e6bcc5d63b8b02..c4707b4caf956b 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());