Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError for Global constructor with v128 #1472

Merged
merged 1 commit into from
May 16, 2022
Merged

TypeError for Global constructor with v128 #1472

merged 1 commit into from
May 16, 2022

Conversation

gahaas
Copy link
Collaborator

@gahaas gahaas commented May 12, 2022

At the moment the spec requires a LinkError to be thrown when the WebAssembly.Global constructor is called for type v128. This was introduced in WebAssembly/simd#360, but according to the PR description, actually a TypeError should be thrown. The PR refers to https://github.com/WebAssembly/simd/blob/master/proposals/simd/SIMD.md#javascript-api-and-simd-values, and there a TypeError is required.

At the moment the spec requires a `LinkError` to be thrown when the `WebAssembly.Global` constructor is called for type `v128`. This was introduced in WebAssembly/simd#360, but according to the PR description, actually a `TypeError` should be thrown. The PR refers to https://github.com/WebAssembly/simd/blob/master/proposals/simd/SIMD.md#javascript-api-and-simd-values, and there a `TypeError` is required.
@gahaas gahaas requested a review from Ms2ger May 12, 2022 12:31
Copy link
Collaborator

@Ms2ger Ms2ger left a comment

Choose a reason for hiding this comment

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

Seems to have been done in WebAssembly/simd#360; cc @ngzhian @dtig

No objection from me, but I'll wait a little while to merge in case anyone disagrees.

@ngzhian
Copy link
Member

ngzhian commented May 12, 2022

LGTM, thanks!

@Ms2ger Ms2ger merged commit be736ea into main May 16, 2022
@Ms2ger Ms2ger deleted the gahaas-patch-1 branch May 16, 2022 12:17
gahaas added a commit to gahaas/wpt that referenced this pull request May 16, 2022
The exception type was incorrect and got fixed recently in WebAssembly/spec#1472
Ms2ger pushed a commit to web-platform-tests/wpt that referenced this pull request May 16, 2022
The exception type was incorrect and got fixed recently in WebAssembly/spec#1472
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 23, 2022
… for v128, a=testonly

Automatic update from web-platform-tests
Fix exception type of WebAssembly.Global for v128

The exception type was incorrect and got fixed recently in WebAssembly/spec#1472
--

wpt-commits: 9daa9178bb6b5397cb3c8d3b731526e8e7e26851
wpt-pr: 34072
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request May 25, 2022
… for v128, a=testonly

Automatic update from web-platform-tests
Fix exception type of WebAssembly.Global for v128

The exception type was incorrect and got fixed recently in WebAssembly/spec#1472
--

wpt-commits: 9daa9178bb6b5397cb3c8d3b731526e8e7e26851
wpt-pr: 34072
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.

3 participants