Skip to content

Commit

Permalink
Update src/bun.js/bindings/bindings.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner authored Nov 23, 2024
1 parent 15a33f5 commit 72b8b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bun.js/bindings/bindings.zig
Original file line number Diff line number Diff line change
Expand Up @@ -6793,7 +6793,7 @@ pub fn toJSHostValue(globalThis: *JSGlobalObject, value: error{ OutOfMemory, JSE
error.JSError => .zero,
error.OutOfMemory => globalThis.throwOutOfMemoryValue(),
};
bun.assert((normal == .zero) == globalThis.hasException());
bun.assert((normal == .zero or normal == .undefined) == globalThis.hasException());
return normal;
}
return value catch |err| switch (err) {
Expand Down

0 comments on commit 72b8b89

Please sign in to comment.