Skip to content

Conversation

Liedtke
Copy link
Contributor

@Liedtke Liedtke commented Sep 23, 2025

We should add some basic coverage for externref globals.
(We should extend this if #1980 results in adding more allowed types.)

Comment on lines +188 to +189
]) {
global.value = value;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't this going to throw an assertion in step 5 because you didn't pass mutable: true in the constructor?

Comment on lines +187 to +192
() => null
]) {
global.value = value;
assert_Global(global, value);
}
}, "externref global");
Copy link
Collaborator

Choose a reason for hiding this comment

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

This case isn't testing the constructor, which is what this file is for. I believe there's a file for the value getter/setter nearby

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