src: explicitly allow JS in ReadHostObject · nodejs/node@a6f69eb (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit a6f69eb
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(), |