Skip to content

AsyncLocalStorage potential issue ? #33580

@FranckFreiburger

Description

@FranckFreiburger

resource[this.kResourceStore] = store;

You are using the resource object to store the store whereas the doc state :

In some cases the resource object is reused for performance reasons, it is thus not safe to use it as a key in a WeakMap or add properties to it.

I just wondering if it is ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    async_hooksIssues and PRs related to the async hooks subsystem.docIssues and PRs related to the documentations.questionIssues that look for answers.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions