WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
287402
WasmGC support for `js-string` builtin proposal
https://bugs.webkit.org/show_bug.cgi?id=287402
Summary
WasmGC support for `js-string` builtin proposal
Martin Kustermann
Reported
2025-02-10 06:09:55 PST
For any language compiling to WasmGC instead of JavaScript, operations on JS strings is crucial and the `js-string` builtin proposal is a step in this direction by providing a standardized interface for JS string operations that can be optimized by implementors as well as by providing a good way to import JS string constants. The `js-string` builtin (**) proposal has been effectively finalized and is implemented and enabled on Chrome & Firefox. It would be nice to also get this implemented in WebKit. One cannot entirely polyfill the `js-string` builtins: One can polyfill the imported JS string functions from the proposal, but not the import of string constants (as the actual string constants are utf8-encoded in the wasm module encoding of the imports - instead of using the import tables, see (***)). (**)
https://github.com/WebAssembly/js-string-builtins
(***)
https://github.com/WebAssembly/js-string-builtins/blob/main/proposals/js-string-builtins/Overview.md#string-constants
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-02-17 06:10:15 PST
<
rdar://problem/144981609
>
bashorov
Comment 2
2025-03-03 11:03:06 PST
In Kotlin, we would love to see support for this proposal.
bashorov
Comment 3
2025-03-03 11:03:31 PST
Actually, I think any language targeting WasmGC on the web would also like to use this proposal and benefit from it.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug