Skip to content

Alternative "Delete the __proto__ and * keys" non-viable #4

Open
@bmeck

Description

@bmeck

Global disabling of .prototype and .constructor keys is unlikely to be viable. Node does have --disable-proto that it wished to turn on by default and even then the ecosystem has struggled to make it work (last run of our ecosystems tests still had it failing). I think deleting of __proto__ is possible but harder than framed given attempt to do so already.

Unfortunately due to some specifications like web components properties on these are intended to be accessed and would require major shifts to make them change not just in specifications but also in polyfills etc. See https://html.spec.whatwg.org/multipage/custom-elements.html#element-definition

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions