Bug 1913964 - wasm: Ship js-string-builtins. r=bvisness,yury

Differential Revision: https://phabricator.services.mozilla.com/D229093
This commit is contained in:
Ryan Hunt 2024-11-19 16:14:04 +00:00
parent f83aed0c99
commit 4f528f7efc
2 changed files with 15 additions and 3 deletions

View File

@ -80,11 +80,23 @@ let releasedFeatures = [
wasmMemory64Enabled(),
`(module (memory i64 0))`,
],
[
'js-string-builtins',
wasmJSStringBuiltinsEnabled(),
`(module
(import "wasm:js-string" "concat"
(func
(param externref externref)
(result (ref extern)))
)
)`,
{builtins: ['js-string']}
]
];
for (let [name, enabled, test] of releasedFeatures) {
for (let [name, enabled, test, options] of releasedFeatures) {
if (release_or_beta) {
assertEq(enabled, true, `${name} must be enabled on release and beta`);
wasmEvalText(test);
wasmEvalText(test, {}, options);
}
}

View File

@ -8478,7 +8478,7 @@
- name: javascript.options.wasm_js_string_builtins
type: bool
value: false
value: true
mirror: always
set_spidermonkey_pref: always