Skip to content

Commit

Permalink
src: explicitly allow JS in ReadHostObject
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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 refack committed Jan 10, 2019
1 parent 07d3470 commit e4df1f7
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 e4df1f7

Please sign in to comment.