src: explicitly allow JS in ReadHostObject · nodejs/node@a6f69eb (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Commit a6f69eb

hashseedtargos

authored and

committed

src: explicitly allow JS in ReadHostObject

PR-URL: #23423Reviewed-By: Colin Ihrig cjihrig@gmail.com Reviewed-By: Gus Caplan me@gus.host Reviewed-By: Myles Borins myles.borins@gmail.com

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -296,6 +296,7 @@ MaybeLocal DeserializerContext::ReadHostObject(Isolate* isolate) {
296 296 return ValueDeserializer::Delegate::ReadHostObject(isolate);
297 297 }
298 298
299 + Isolate::AllowJavascriptExecutionScope allow_js(isolate);
299 300 MaybeLocal ret =
300 301 read_host_object.As()->Call(env()->context(),
301 302 object(),