[v8-users] How to handle module not found in v8::Module::ResolveCallback to avoid v8 crashes.

2018-12-28 Thread Jane Chen
Embedding v8 6.7, open to upgrade if necessary. I modified v8 shell.cc to experiment with the new Module API and am trying to figure out how to handle error conditions while resolving a module. If the resolve callback calls v8::Isolate::throwException, I get: # # Fatal error in

[v8-users] Re: How to handle module not found in v8::Module::ResolveCallback to avoid v8 crashes.

2018-12-28 Thread Jane Chen
Attached patches to shell.cc. On Friday, December 28, 2018 at 12:15:48 PM UTC-8, Jane Chen wrote: > > Embedding v8 6.7, open to upgrade if necessary. > > I modified v8 shell.cc to experiment with the new Module API and am trying > to figure out how to handle error conditions while resolving a