From e4df1f79aba62db32c01bdf3c46caab28ec67486 Mon Sep 17 00:00:00 2001 From: Yang Guo Date: Fri, 16 Nov 2018 10:44:12 +0100 Subject: [PATCH] src: explicitly allow JS in ReadHostObject PR-URL: https://github.com/nodejs/node/pull/23423 Reviewed-By: Colin Ihrig Reviewed-By: Gus Caplan Reviewed-By: Myles Borins --- src/node_serdes.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node_serdes.cc b/src/node_serdes.cc index 5d5d002e9dd683..565fb7e3f084d1 100644 --- a/src/node_serdes.cc +++ b/src/node_serdes.cc @@ -296,6 +296,7 @@ MaybeLocal DeserializerContext::ReadHostObject(Isolate* isolate) { return ValueDeserializer::Delegate::ReadHostObject(isolate); } + Isolate::AllowJavascriptExecutionScope allow_js(isolate); MaybeLocal ret = read_host_object.As()->Call(env()->context(), object(),