Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ not_unsafe_ptr_arg_deref = "allow"
# SWC for TypeScript parsing
swc_ecma_parser = "32.0"
swc_ecma_ast = "19.0"
swc_ecma_visit = "19.0"
swc_common = "18.0"
swc_ecma_codegen = "21.0"
swc_ecma_transforms_base = "32.0"
Expand Down
6 changes: 6 additions & 0 deletions changelog.d/8663-node-tls-parity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Completed `node:tls` compatibility across the full node-suite inventory. TLS
servers and sockets now support real loopback handshakes, ALPN and SNI
selection, certificate and secure-context rotation, custom trust stores,
client certificates, identity callbacks, negotiated state, orderly shutdown,
and Node-compatible validation and error shapes in both bundled and optimized
external-net builds. The current TLS inventory passes 100/100 fixtures.
8 changes: 8 additions & 0 deletions crates/perry-api-manifest/src/entries/part_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,13 @@ pub(crate) const API_MANIFEST_PART_1: &[ApiEntry] = &[
method("net", "isSessionReused", true, Some("Socket")),
method("net", "exportKeyingMaterial", true, Some("Socket")),
method("net", "setMaxSendFragment", true, Some("Socket")),
method("net", "getEphemeralKeyInfo", true, Some("Socket")),
method("net", "getFinished", true, Some("Socket")),
method("net", "getPeerFinished", true, Some("Socket")),
method("net", "getSharedSigalgs", true, Some("Socket")),
method("net", "getX509Certificate", true, Some("Socket")),
method("net", "getPeerX509Certificate", true, Some("Socket")),
method("net", "setKeyCert", true, Some("Socket")),
// Issue #1123 followup — `net.Server` instance methods backing
// `createServer(...).listen/.close/.address/.on`. Mirrors the
// shape of the http-server rows at entries.rs:2298. The
Expand Down Expand Up @@ -861,6 +868,7 @@ pub(crate) const API_MANIFEST_PART_1: &[ApiEntry] = &[
TypeSpec::Any,
),
method("tls", "getCiphers", false, None),
method("tls", "getCertificateCompressionAlgorithms", false, None),
method_sig(
"tls",
"setDefaultCACertificates",
Expand Down
499 changes: 4 additions & 495 deletions crates/perry-codegen/src/codegen/helpers.rs

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion crates/perry-codegen/src/codegen/method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,16 @@ pub(super) fn compile_method(
// .pathname` threw. Forward this synthesized ctor's params to the
// runtime dynamic-parent super dispatcher, mirroring the explicit
// `Expr::SuperCall` dynamic-parent path in `expr/this_super_call.rs`.
if builtin_parent_runtime.is_none() && class.extends_expr.is_some() {
let parent_is_uncallable_builtin = class
.extends_name
.as_deref()
.map(crate::expr::is_other_builtin_constructor_name)
.unwrap_or(false)
&& class.extends_name.as_deref() != Some("SharedArrayBuffer");
if builtin_parent_runtime.is_none()
&& class.extends_expr.is_some()
&& !parent_is_uncallable_builtin
{
if let Some(cid) = ctx.class_ids.get(&class.name).copied().filter(|c| *c != 0) {
let undef_lit =
crate::nanbox::double_literal(f64::from_bits(crate::nanbox::TAG_UNDEFINED));
Expand Down
1 change: 1 addition & 0 deletions crates/perry-codegen/src/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ mod spec_preserve_none_tests;
mod spec_return_proof;
#[cfg(test)]
mod spec_self_recursion_tests;
pub(crate) mod static_fields;
mod string_pool;
#[cfg(test)]
mod testing_feature_gate_tests;
Expand Down
Loading
Loading