Skip to content

doc: code example contains errors in crypto api #38540

Closed
javascript-indonesias/node
#357
@JBaczuk

Description

@JBaczuk

📗 API Reference Docs Problem

  • Version: 16.1.0
  • Platform: N/A
  • Subsystem: crypto

Location

Section of the site where the content exists

Affected URL(s):

Description

Concise explanation of the problem

const {
  createECDH,
  createHash,
} = await crypto('crypto');

Should be

const {
  createECDH,
  createHash,
} = await import('crypto');

  • I would like to work on this issue and
    submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions