-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
+5 passing node:zlib tests #15944
+5 passing node:zlib tests #15944
Conversation
Updated 10:12 AM PT - Dec 22nd, 2024
✅ @Jarred-Sumner, your commit b77d569 has passed in 🧪 try this PR locally: bunx bun-pr 15944 |
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.
nice
if (!common.isMainThread) { | ||
common.skip('Cannot test the existence of --expose-internals from worker'); | ||
} | ||
common.skip("This test is not going to be implemented in Bun. We do not support --expose-internals.") |
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.
common.skip
exits the process so the commenting out below here is unnecessary btw
@@ -662,16 +671,14 @@ pub const NativeBrotli = JSC.Codegen.JSNativeBrotli.getConstructor; | |||
|
|||
pub const SNativeBrotli = struct { | |||
pub usingnamespace bun.NewRefCounted(@This(), deinit); | |||
pub usingnamespace JSC.Codegen.JSNativeZlib; | |||
pub usingnamespace JSC.Codegen.JSNativeBrotli; |
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.
! nice find
switch (this.stream.mode) { | ||
.BROTLI_ENCODE, .BROTLI_DECODE => this.stream.close(), | ||
else => {}, | ||
} |
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.
switch (this.stream.mode) { | |
.BROTLI_ENCODE, .BROTLI_DECODE => this.stream.close(), | |
else => {}, | |
} | |
this.stream.close(); |
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.
There's an assertion in there related to .mode so I was doing this to be cautious
What does this PR do?
+5 passing node:zlib tests
this
value when it wasn't necessaryHow did you verify your code works?
Ran existing node tests and verified they pass