Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 707048fdabb7f80ccb5222e342ca5a4257eb1dd2
https://github.com/WebKit/WebKit/commit/707048fdabb7f80ccb5222e342ca5a4257eb1dd2
Author: Yusuke Suzuki <[email protected]>
Date: 2026-08-07 (Fri, 07 Aug 2026)
Changed paths:
A JSTests/wasm/stress/memory-type-reflects-current-size.js
M Source/JavaScriptCore/wasm/js/JSWebAssemblyMemory.cpp
Log Message:
-----------
[JSC] WebAssembly.Memory.prototype.type() needs to report current size
https://bugs.webkit.org/show_bug.cgi?id=321329
rdar://184364939
Reviewed by Yijia Huang.
WebAssembly.Memory.prototype.type()'s minimum size is mem_type's
minimum limit[2], which is the current size of the memory, not initially
declared size.
[1]: https://webassembly.github.io/js-types/js-api/index.html#dom-memory-type
[2]:
https://webassembly.github.io/spec/core/appendix/embedding.html#embed-mem-type
Test: JSTests/wasm/stress/memory-type-reflects-current-size.js
* JSTests/wasm/stress/memory-type-reflects-current-size.js: Added.
(check):
(string_appeared_here.await.instantiate.module.memory):
(string_appeared_here.memory.grow):
(maximum.numOrBig):
* Source/JavaScriptCore/wasm/js/JSWebAssemblyMemory.cpp:
(JSC::JSWebAssemblyMemory::type):
Canonical link: https://commits.webkit.org/318830@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications