Skip to content

Prototype object of ES6 classes always non-writable #2025

@broadsw0rd

Description

@broadsw0rd

If we try to compile this snippet with babel, we will get true in our console. But if run it in Chrome 43, we will get false.

class Foo{}

console.log(Object.getOwnPropertyDescriptor(Foo, 'prototype').writable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR: Spec Compliance 👓A type of pull request used for our changelog categoriesoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions