-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zig: make throwTODO use JSError #15264
Conversation
@@ -2305,7 +2305,7 @@ fn NewSocket(comptime ssl: bool) type { | |||
const length_value = args[2]; | |||
|
|||
if (encoding_value != .undefined and (offset_value != .undefined or length_value != .undefined)) { | |||
globalObject.throwTODO("Support encoding with offset and length altogether. Only either encoding or offset, length is supported, but not both combinations yet."); | |||
globalObject.throwTODO("Support encoding with offset and length altogether. Only either encoding or offset, length is supported, but not both combinations yet.") catch {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we change writeOrEnd
to have an error union return type instead of catch {};
? Same with stdio.zig extract
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps, yeah it seems this whole function is using .fail
for exceptions
@cirospaciari would likely know more on the prospect of that change
Co-authored-by: Dylan Conway <[email protected]>
Co-authored-by: Dylan Conway <[email protected]>
progress towards #15141