Commit 296bfd23 authored by Rich Trott's avatar Rich Trott
Browse files

crypto: fix error in deprecation message

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.

PR-URL: https://github.com/nodejs/node/pull/6344


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 153b796d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment