Skip to content

fix(ext/node): rename _destroySsl to _destroySSL to match Node.js API#33599

Merged
bartlomieju merged 2 commits into
mainfrom
fix/tls-destroyssl-naming
Apr 27, 2026
Merged

fix(ext/node): rename _destroySsl to _destroySSL to match Node.js API#33599
bartlomieju merged 2 commits into
mainfrom
fix/tls-destroyssl-naming

Conversation

@bartlomieju

Copy link
Copy Markdown
Member

Summary

  • Renames TLSSocket.prototype._destroySsl to _destroySSL to match
    Node.js's naming convention
  • Fixes test-tls-socket-destroy.js node_compat test which calls
    socket._destroySSL() and was getting TypeError: not a function

Test plan

  • ./x test-compat test-tls-socket-destroy.js passes

The TLSSocket._destroySSL method was named _destroySsl in Deno's
polyfill, but Node.js uses _destroySSL (uppercase SSL). This caused
tests calling socket._destroySSL() to throw a TypeError.
@bartlomieju
bartlomieju enabled auto-merge (squash) April 27, 2026 20:07
@bartlomieju
bartlomieju merged commit 1287800 into main Apr 27, 2026
136 checks passed
@bartlomieju
bartlomieju deleted the fix/tls-destroyssl-naming branch April 27, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant