aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/wasm/jsapi/wasm-module-builder.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/wasm/jsapi/wasm-module-builder.js')
-rw-r--r--tests/wpt/web-platform-tests/wasm/jsapi/wasm-module-builder.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/wasm-module-builder.js b/tests/wpt/web-platform-tests/wasm/jsapi/wasm-module-builder.js
index a937eed4c62..09ff891f52e 100644
--- a/tests/wpt/web-platform-tests/wasm/jsapi/wasm-module-builder.js
+++ b/tests/wpt/web-platform-tests/wasm/jsapi/wasm-module-builder.js
@@ -553,9 +553,9 @@ class WasmModuleBuilder {
return this.num_imported_funcs++;
}
- addImportedGlobal(module, name, type) {
+ addImportedGlobal(module, name, type, mutable = false) {
let o = {module: module, name: name, kind: kExternalGlobal, type: type,
- mutable: false}
+ mutable: mutable};
this.imports.push(o);
return this.num_imported_globals++;
}