Skip to content

doc: Event: 'unhandledRejection' code example not borked #5644

@jmm

Description

@jmm

https://nodejs.org/api/process.html#process_event_unhandledrejection

somePromise.then((res) => {
  return reportToUser(JSON.parse(res)); // note the typo
}); // no `.catch` or `.then`

Someone made off with the typo. When this is put back together I'd suggest updating to something like:

// note the typo (`pasre`)

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.processIssues and PRs related to the process subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions