Skip to content

crypto: make DEFAULT_ENCODING non-enumerable - #23227

Closed
guybedford wants to merge 1 commit into
nodejs:masterfrom
guybedford:crypto-deprecation-module-fix
Closed

crypto: make DEFAULT_ENCODING non-enumerable#23227
guybedford wants to merge 1 commit into
nodejs:masterfrom
guybedford:crypto-deprecation-module-fix

Conversation

@guybedford

Copy link
Copy Markdown
Contributor

Fixes#23203.

Deprecated exports now need to always be non-enumerable - this pattern was established when we implemented named exports for Node core modules from ES Modules. Otherwise import 'crypto' will always give a deprecation warning for modules.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added the crypto Issues and PRs related to the crypto subsystem. label Oct 2, 2018
@richardlaurichardlau added the duplicate Issues and PRs that are duplicates of other issues or PRs. label Oct 2, 2018
@richardlau

Copy link
Copy Markdown
Member

Duplicate of #23222.

@guybedford

Copy link
Copy Markdown
ContributorAuthor

Thanks, missed that.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cryptoIssues and PRs related to the crypto subsystem.duplicateIssues and PRs that are duplicates of other issues or PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@guybedford@nodejs-github-bot@richardlau