Skip to content

Commit 5ad7106

Browse files
committed
expection: fix non-nullable return
1 parent 9f97725 commit 5ad7106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/js.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ pub fn Env(comptime State: type, comptime WebApis: type) type {
11471147
scope: *const Scope,
11481148

11491149
// the caller needs to deinit the string returned
1150-
pub fn exception(self: Exception, allocator: Allocator) !?[]const u8 {
1150+
pub fn exception(self: Exception, allocator: Allocator) ![]const u8 {
11511151
const scope = self.scope;
11521152
return try valueToString(allocator, self.inner, scope.isolate, scope.context);
11531153
}

0 commit comments

Comments
 (0)