Skip to content

Handle ~empty~ module instance in namespaceInstance - #132

Open
dminor wants to merge 1 commit into
WebAssembly:mainfrom
dminor:empty-namespace-instance
Open

dminor wants to merge 1 commit into
WebAssembly:mainfrom
dminor:empty-namespace-instance

Conversation

@dminor

@dminor dminor commented Nov 25, 2026

Copy link
Copy Markdown

No description provided.

@guybedford guybedford left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix, seems correct to me.

Comment thread document/js-api/index.bs
1. If |namespace| is not a [=Module Namespace exotic object=] with a \[[Module]] internal slot, [=throw=] a {{TypeError}} exception.
1. If |namespace|.\[[Module]] is not a [=WebAssembly Module Record=], [=throw=] a {{TypeError}} exception.
1. Let |module| be |namespace|.\[[Module]].
1. If |module|.\[[Instance]] is ~empty~, [=throw=] a {{TypeError}} exception.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this maybe be a ReferenceError like it is for a missing function?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants