[webkit-changes] [WebKit/WebKit] 6032e1: [WASM] WASM GC Objects should have null prototype
Yijia Huang
noreply at github.com
Tue Jan 21 11:39:25 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6032e158dbd5e3b8d9571f316d74a0d654ab954e
https://github.com/WebKit/WebKit/commit/6032e158dbd5e3b8d9571f316d74a0d654ab954e
Author: Yijia Huang <yijia_huang at apple.com>
Date: 2025-01-21 (Tue, 21 Jan 2025)
Changed paths:
A JSTests/wasm/stress/wasm-gc-object-prototype.js
M Source/JavaScriptCore/runtime/JSGlobalObject.h
Log Message:
-----------
[WASM] WASM GC Objects should have null prototype
https://bugs.webkit.org/show_bug.cgi?id=286282
rdar://143291159
Reviewed by Yusuke Suzuki and Mark Lam.
Per the WebAssembly GC specification, WebAssembly GC objects (e.g.,
`WebAssembly.Struct` and `WebAssembly.Array`) must return a null
prototype [1]. This commit updates the `Structure`'s `prototypeBase`
for these objects to ensure compliance with the spec.
[1] https://github.com/WebAssembly/gc/blob/756060f5816c7e2159f4817fbdee76cf52f9c923/proposals/gc/MVP-JS.md?plain=1#L15-L25
* Source/JavaScriptCore/runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::nullPrototype const):
Canonical link: https://commits.webkit.org/289191@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list