Skip to content

Questions: will nodejs expose SetPromiseHook of V8 as javascript API in the future?Β #13139

Closed
@JiaLiPassion

Description

@JiaLiPassion
  • Version:
  • Platform:
  • Subsystem:

in the newest nodejs,

  1. the async_wrap and async_hooks have been implemented in async_hooks initial implementationΒ #11883.
  2. addPromiseHook have been exposed in domain: support promisesΒ #12489

I want to ask that will addPromiseHook be exposed as Javascript API? Or it will also use the async_wrap to intercept the promise lifecycle?

The reason I asked is I want to implement an async_hooks version zone.js to resolve the
native async/await issue. currently native async/await of nodejs use native v8 promise and can't be tracked by javascript module.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    async_hooksIssues and PRs related to the async hooks subsystem.promisesIssues and PRs related to ECMAScript promises.questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions