diff options
author | Yang Guo <yangguo@chromium.org> | 2018-11-16 12:44:12 +0300 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2018-12-06 17:26:02 +0300 |
commit | a6f69ebc05f4033b012b523661f6c3f62f3469b1 (patch) | |
tree | 0a523ca1422b40b49d05c12b15afb08ad6fc7593 /src/node_serdes.cc | |
parent | 3d255441482fdea7ba42408102119e82f09df751 (diff) |
src: explicitly allow JS in ReadHostObject
PR-URL: https://github.com/nodejs/node/pull/23423
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'src/node_serdes.cc')
-rw-r--r-- | src/node_serdes.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_serdes.cc b/src/node_serdes.cc index 5d5d002e9dd..565fb7e3f08 100644 --- a/src/node_serdes.cc +++ b/src/node_serdes.cc @@ -296,6 +296,7 @@ MaybeLocal<Object> DeserializerContext::ReadHostObject(Isolate* isolate) { return ValueDeserializer::Delegate::ReadHostObject(isolate); } + Isolate::AllowJavascriptExecutionScope allow_js(isolate); MaybeLocal<Value> ret = read_host_object.As<Function>()->Call(env()->context(), object(), |