Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

JS API: importing globals #461

@vouillon

Description

@vouillon

I'm wondering whether the 'read the imports' process should be updated. As far as I can see, when importing a global (step 3.5), the imported value should be either a number or should implement Global. So, it currently does not allow to directly import a JavaScript string, for instance.

It seems that, when the global has a reference type, V8 allows to import arbitrary values as long as the type matches. Firefox is currently pickier but allows to import arbitrary values when the global has type externref.

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