This is a testharness.js-based test.
[FAIL] constants
assert_throws_js: type mismatch function "() => instantiateImportedGlobal("'", "constant", type, mutable, "'")" threw object "LinkError: WebAssembly.Module(): String constant import #0 "constant" must be an immutable global subtyping externref @+11" ("LinkError") expected instance of function "function CompileError() { [native code] }" ("CompileError")
[FAIL] constants 1
assert_throws_js: type mismatch function "() => instantiateImportedGlobal("'", "constant", type, mutable, "'")" threw object "LinkError: WebAssembly.Module(): String constant import #0 "constant" must be an immutable global subtyping externref @+11" ("LinkError") expected instance of function "function CompileError() { [native code] }" ("CompileError")
[FAIL] constants 2
assert_throws_js: type mismatch function "() => instantiateImportedGlobal("'", "constant", type, mutable, "'")" threw object "LinkError: WebAssembly.Module(): String constant import #0 "constant" must be an immutable global subtyping externref @+11" ("LinkError") expected instance of function "function CompileError() { [native code] }" ("CompileError")
[FAIL] constants 3
assert_throws_js: type mismatch function "() => instantiateImportedGlobal("'", "constant", type, mutable, "'")" threw object "LinkError: WebAssembly.Module(): String constant import #0 "constant" must be an immutable global subtyping externref @+11" ("LinkError") expected instance of function "function CompileError() { [native code] }" ("CompileError")
[FAIL] constants 4
assert_throws_js: type mismatch function "() => instantiateImportedGlobal("'", "constant", type, mutable, "'")" threw object "LinkError: WebAssembly.Module(): String constant import #0 "constant" must be an immutable global subtyping externref @+11" ("LinkError") expected instance of function "function CompileError() { [native code] }" ("CompileError")
[FAIL] constants 5
assert_throws_js: type mismatch function "() => instantiateImportedGlobal("'", "constant", type, mutable, "'")" threw object "LinkError: WebAssembly.Module(): String constant import #0 "constant" must be an immutable global subtyping externref @+11" ("LinkError") expected instance of function "function CompileError() { [native code] }" ("CompileError")
[FAIL] constants 6
assert_throws_js: type mismatch function "() => instantiateImportedGlobal("'", "constant", type, mutable, "'")" threw object "LinkError: WebAssembly.Module(): String constant import #0 "constant" must be an immutable global subtyping externref @+11" ("LinkError") expected instance of function "function CompileError() { [native code] }" ("CompileError")
[FAIL] constants 7
assert_throws_js: type mismatch function "() => instantiateImportedGlobal("'", "constant", type, mutable, "'")" threw object "LinkError: WebAssembly.Module(): String constant import #0 "constant" must be an immutable global subtyping externref @+11" ("LinkError") expected instance of function "function CompileError() { [native code] }" ("CompileError")
[FAIL] constants 8
assert_throws_js: type mismatch function "() => instantiateImportedGlobal("'", "constant", type, mutable, "'")" threw object "LinkError: WebAssembly.Module(): String constant import #0 "constant" must be an immutable global subtyping externref @+11" ("LinkError") expected instance of function "function CompileError() { [native code] }" ("CompileError")
[FAIL] constants 9
assert_throws_js: type mismatch function "() => instantiateImportedGlobal("'", "constant", type, mutable, "'")" threw object "LinkError: WebAssembly.Module(): String constant import #0 "constant" must be an immutable global subtyping externref @+11" ("LinkError") expected instance of function "function CompileError() { [native code] }" ("CompileError")
Harness: the test ran to completion.