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>
This commit is contained in:
Yang Guo 2018-11-16 10:44:12 +01:00 committed by Michaël Zasso
parent 3d25544148
commit a6f69ebc05
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600

View File

@ -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(),