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

Conversation

@vouillon
Copy link
Contributor

@vouillon vouillon commented Nov 4, 2023

Handle the case where the global has a reference type. See #461.

Copy link
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM.

@rossberg rossberg merged commit 8f14916 into WebAssembly:main Nov 6, 2023
@vouillon vouillon deleted the read-imports branch November 6, 2023 10:25
webkit-commit-queue pushed a commit to takikawa/WebKit that referenced this pull request Dec 20, 2023
https://bugs.webkit.org/show_bug.cgi?id=264655

Reviewed by Justin Michaud.

The GC proposal JS API was recently updated
(WebAssembly/gc#467) to allow direct import of reftype
globals in more cases.

This patch also includes a version of the pending WPT tests for this case
(tracked upstream here: WebAssembly/gc#498) which
should be updated later if there are any changes in the accepted upstream
version.

* JSTests/wasm/gc/js-api.js:
(testImport.):
(testImport):
* LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/gc/global-import.tentative.any.js: Added.
(setup.doLink):
(setup):
(test):
* Source/JavaScriptCore/wasm/js/JSWebAssemblyHelpers.h:
(JSC::fromJSValue):
* Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp:
(JSC::WebAssemblyModuleRecord::initializeImports):

Canonical link: https://commits.webkit.org/272367@main
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants