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:
parent
3d25544148
commit
a6f69ebc05
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user