Skip to content

Consider storing the associated "parent" Realm in an internal slot #285

@littledan

Description

@littledan

In the HTML integration patch for Realms, HTML keeps track of the parent Realm of each synthetic Realm created in this API as part of a record stored in its [[HostDefined]] field. The parent Realm is used to key off of for various behaviors at the HTML level.

While this mechanism can be defined accurately at the HTML level, it is likely meaningful in other environments as well (cc @jasnell who has been thinking about this for Node.js). So, we should consider defining the parent Realm in a field of the record for synthetic Realms, to facilitate this.

Thanks to @annevk for pointing out this issue.

This is a minor editorial/layering issue that does not block Stage 3 and can be iterated on after it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions