We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
node:tls
connect
1.1.42+50eec0025
Microsoft Windows NT 10.0.27764.0 x64
import { connect } from "node:tls"; const a = connect(24800, "localhost", { rejectUnauthorized: false }); // @ts-ignore console.log(a._rejectUnauthorized); const b = connect({ port: 24800, host: "localhost", rejectUnauthorized: false, }); // @ts-ignore console.log(b._rejectUnauthorized);
Both to be false
false
> bun src/test.ts true false DEPTH_ZERO_SELF_SIGNED_CERT: self signed certificate Bun v1.1.42 (Windows x64)
The connect method throws away the options parameter when first parameter is not an object:
options
bun/src/js/node/tls.ts
Lines 685 to 695 in 37e7f5b
Line 686-688 should be straightly deleted.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
1.1.42+50eec0025
What platform is your computer?
Microsoft Windows NT 10.0.27764.0 x64
What steps can reproduce the bug?
What is the expected behavior?
Both to be
false
What do you see instead?
Additional information
The
connect
method throws away theoptions
parameter when first parameter is not an object:bun/src/js/node/tls.ts
Lines 685 to 695 in 37e7f5b
Line 686-688 should be straightly deleted.
The text was updated successfully, but these errors were encountered: