Skip to content

Add a check for extensibility Object.isExtensible(Element.prototype) #15558

Closed
@andrey-ka-97-afp

Description

@andrey-ka-97-afp

Describe the bug

In the file svelte\src\internal\client\dom\operations.js in the method init_operations there is an extension for Element. Please add the check Object.isExtensible(Element.prototype), without it an error occurs. Our code is used on different sites, on one of them there is the code Object.freeze(Element.prototype) and because of this our scripts break. We cannot influence this in any way. It would be great if the "svelte" project adds checks before Element.prototype extensions.

Reproduction

No reproduction required, description is as clear as possible

Logs

System Info

All

Severity

blocking all usage of svelte

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