Skip to content

Symbol.{ dispose, asyncDispose } have incorrect descriptors #48699

@zloirock

Description

@zloirock

Version

20.4.0

Platform

All

Subsystem

No response

What steps will reproduce the bug?

`Object.getOwnPropertyDescriptor(Symbol, 'dispose');

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior? Why is that the expected behavior?

Object.getOwnPropertyDescriptor(Symbol, 'dispose'); // => {value: Symbol(Symbol.dispose), writable: false, enumerable: false, configurable: false}

All well-known symbols should be non-writable, non-enumerable, and non-configurable to avoid patching and breaking things.

What do you see instead?

Object.getOwnPropertyDescriptor(Symbol, 'dispose'); // => {value: Symbol(Symbol.dispose), writable: true, enumerable: true, configurable: true}

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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