rusty_v8 icon indicating copy to clipboard operation
rusty_v8 copied to clipboard

Add bindings for `AllowJavascriptExecutionScope`

Open andreubotella opened this issue 3 years ago • 1 comments

In denoland/deno#12505 it came up that trying to run Javascript code from v8::ValueDeserializerImpl::read_host_object resulted in a crash because apparently that method is invoked from V8 inside a DisallowJavascriptExecutionScope. Implementing structured clone for web APIs in Deno essentially requires running JS code in the implementation of that method, and so bindings to v8::Isolate::AllowJavascriptExecutionScope would be needed to make that possible.

andreubotella avatar Nov 15 '21 17:11 andreubotella

@piscisaureus cc self

piscisaureus avatar Nov 16 '21 20:11 piscisaureus