Skip to content

crypto: fix error in deprecation message

Rodrigo Muino Tomonari requested to merge github/fork/Trott/deprecrypto into master
Checklist
  • tests and code linting passes
  • a test and/or benchmark is included
  • the commit message follows commit guidelines
Affected core subsystem(s)

crypto test

Description of change

The deprecation message for crypto.Credentials says to use tls.createSecureContext but the correct property to use is tls.SecureContext().

Fix the deprecation message and add a test that checks the mappings of deprecated properties and their warning messages.

@nodejs/crypto

Merge request reports

Loading