Skip to content

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=322115 - #62352

Merged
Ms2ger merged 1 commit into
web-platform-tests:masterfrom
chicoxyzzy:wpt-export-for-webkit-322115
Sep 9, 2026
Merged

Ms2ger merged 1 commit into
web-platform-tests:masterfrom
chicoxyzzy:wpt-export-for-webkit-322115

Conversation

@chicoxyzzy

@chicoxyzzy chicoxyzzy commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

WebKit export from bug: [JSC][Wasm] Unwrap immutable globals in the ESM module namespace

Landed in WebKit as 319544@main / WebKit#71954.

These three webapi/ tests still expect ESM namespace globals to be WebAssembly.Global wrappers. That predates esm-integration#104 (merged 2025-04). ExecuteModule now does InitializeBinding(name, ToJSValue(global_read(...))) for global exports. Mutable globals stay live via GetBindingValue → ToJSValue(global_read). Instance.exports is unchanged (still wrapped).

wasm/jsapi/esm-integration/exports.tentative.any.js and global-exports.tentative.any.js already assert the unwrapped values. This brings the older webapi/ copies in line with those tests and the spec.

How to check:

  • import { glob } from "./mod.wasm" → number / bigint, not WebAssembly.Global
  • instance.exports.glob → still a WebAssembly.Global
  • v128 / exnref namespace bindings stay TDZ (not covered by these three files)

@wpt-pr-bot wpt-pr-bot added the wasm label Sep 8, 2026
@Ms2ger
Ms2ger merged commit 3fa23e3 into web-platform-tests:master Sep 9, 2026
28 checks passed
@chicoxyzzy
chicoxyzzy deleted the wpt-export-for-webkit-322115 branch September 9, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants