Skip to content

Allow undefined from ProxyHandler<T>.getOwnPropertyDescriptor  #10904

Description

@mhegazy

From #10550

Currently, with strictNullChecks enabled, the getOwnPropertyDescriptor hook cannot be correctly implemented as all code paths must return a valid PropertyDescriptor.

Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/getOwnPropertyDescriptor

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking ChangeWould introduce errors in existing codeBugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions