Open francisbouvier opened 11 months ago
v8::Script::Compile requires an origin argument, which is a pointer to a v8.ScriptOrigin.
v8::Script::Compile
v8.ScriptOrigin
The actual implementation in Zig Script.compile allow to pass null which will cause the following v8 crash:
Script.compile
# # Fatal error in v8::ScriptCompiler::Compile # v8::ScriptCompiler::CompileModule must be used to compile modules #
We should instead make this parameter non-optional.
v8::Script::Compile
requires an origin argument, which is a pointer to av8.ScriptOrigin
.The actual implementation in Zig
Script.compile
allow to pass null which will cause the following v8 crash:We should instead make this parameter non-optional.