Skip to content

Commit 07a5590

Browse files
Ms2gerlittledan
authored andcommitted
fixup! Merge JS-BigInt-integration proposal into spec
1 parent dc17d1b commit 07a5590

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/js-api/bad-imports.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ function test_bad_imports(t) {
7878
[WebAssembly.Global, "WebAssembly.Global"],
7979
[WebAssembly.Global.prototype, "WebAssembly.Global.prototype"],
8080
[Object.create(WebAssembly.Global.prototype), "Object.create(WebAssembly.Global.prototype)"],
81-
[new WebAssembly.Global({value: "f32"}), "WebAssembly.Global object (wrong value type)"],
8281
];
8382

8483
for (const type of ["i32", "i64", "f32", "f64"]) {
8584
const extendedNonGlobals = nonGlobals.concat([
86-
type === "i64" ? [0, "Number"] : [0n, "BigInt"]
85+
type === "i64" ? [0, "Number"] : [0n, "BigInt"],
86+
[new WebAssembly.Global({value: type === "f32" ? "f64" : "f32"}), "WebAssembly.Global object (wrong value type)"],
8787
]);
8888
for (const [value, name = format_value(value)] of extendedNonGlobals) {
8989
t(`Importing an ${type} global with an incorrectly-typed value: ${name}`,

0 commit comments

Comments
 (0)