Skip to content

Commit

Permalink
src: explicitly allow JS in ReadHostObject
Browse files Browse the repository at this point in the history
PR-URL: #23423
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
  • Loading branch information
hashseed authored and targos committed Dec 6, 2018
1 parent 3d25544 commit a6f69eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node_serdes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit a6f69eb

Please sign in to comment.