From b3c0526af2c6bcf287c6070644ecb83136c08754 Mon Sep 17 00:00:00 2001 From: Momtchil Momtchev Date: Sat, 9 Apr 2022 16:37:44 +0200 Subject: [PATCH] doc: fix the example for embedders Refs: #42670 --- 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());