coderef

String builtins (WebAssembly)Limited availability

The WebAssembly builtin string functions mirror a subset of the JavaScript String API and adapt it to be efficiently callable without JavaScript glue code.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–129Not supported
130+Supportedsince Oct 15, 2024
Current: 155
Edge
12–129Not supported
130+Supportedsince Oct 17, 2024
Current: 154
Firefox
1–133Not supported
134+Supportedsince Jan 7, 2025
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–129Not supported
130+Supportedsince Oct 15, 2024
Current: 155
Firefox Android
4–133Not supported
134+Supportedsince Jan 7, 2025
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Safari, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN — see the links below.

Feature detection

There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.

Sub-features

Support for each part of the feature (7). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
webassembly.api.Module.Module.compile_options130130134✕130134✕
webassembly.api.compileStreaming_static.compile_options130130134✕130134✕
webassembly.api.compile_static.compile_options130130134✕130134✕
webassembly.api.instantiateStreaming_static.compile_options130130134✕130134✕
webassembly.api.instantiate_static.compile_options130130134✕130134✕
webassembly.api.validate_static.compile_options130130134✕130134✕
webassembly.jsStringBuiltins13013013426.213013426.2