Skip to content
Permalink
Browse files

src: explicitly allow JS in ReadHostObject

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 Nov 16, 2018
1 parent 3d25544 commit a6f69ebc05f4033b012b523661f6c3f62f3469b1
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/node_serdes.cc
@@ -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(),

0 comments on commit a6f69eb

Please sign in to comment.
You can’t perform that action at this time.