Skip to content

Commit a6f69eb

Browse files
hashseedtargos
authored andcommitted
src: explicitly allow JS in ReadHostObject
PR-URL: #23423 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Myles Borins <[email protected]>
1 parent 3d25544 commit a6f69eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node_serdes.cc

+1
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ MaybeLocal<Object> DeserializerContext::ReadHostObject(Isolate* isolate) {
296296
return ValueDeserializer::Delegate::ReadHostObject(isolate);
297297
}
298298

299+
Isolate::AllowJavascriptExecutionScope allow_js(isolate);
299300
MaybeLocal<Value> ret =
300301
read_host_object.As<Function>()->Call(env()->context(),
301302
object(),

0 commit comments

Comments
 (0)