Skip to content

gc-exotic-objects [[PreventExtensions]] should return true. #2008

@mhofman

Description

@mhofman

GC object are already non-extensible ([[IsExtensible]] returns true). Preventing extensions on a non-extensible object should be an no-op.

By returning false to [[PreventExtensions]], any caller to Object.preventExtensions() would get a thrown TypeError even though the object is already non-extensible, which is surprising (even though it is not technically a violation of the object invariants).

To avoid this surprising behavior, WASM Garbage Collected Objects should return true for [[PreventExtensions]].

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