We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a1beb0 commit 2701c83Copy full SHA for 2701c83
src/v8.zig
@@ -1583,9 +1583,10 @@ pub const StackTrace = struct {
1583
};
1584
}
1585
1586
- pub fn getCurrentScriptNameOrSourceUrl(iso: Isolate) String {
+ pub fn getCurrentScriptNameOrSourceUrl(iso: Isolate) ?String {
1587
+ const handle = c.v8__StackTrace__CurrentScriptNameOrSourceURL__STATIC(iso.handle) orelse return null;
1588
return .{
- .handle = c.v8__StackTrace__CurrentScriptNameOrSourceURL__STATIC(iso.handle).?,
1589
+ .handle = handle,
1590
1591
1592
0 commit comments