File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,12 @@ function test_bad_imports(t) {
78
78
[ WebAssembly . Global , "WebAssembly.Global" ] ,
79
79
[ WebAssembly . Global . prototype , "WebAssembly.Global.prototype" ] ,
80
80
[ Object . create ( WebAssembly . Global . prototype ) , "Object.create(WebAssembly.Global.prototype)" ] ,
81
- [ new WebAssembly . Global ( { value : "f32" } ) , "WebAssembly.Global object (wrong value type)" ] ,
82
81
] ;
83
82
84
83
for ( const type of [ "i32" , "i64" , "f32" , "f64" ] ) {
85
84
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)" ] ,
87
87
] ) ;
88
88
for ( const [ value , name = format_value ( value ) ] of extendedNonGlobals ) {
89
89
t ( `Importing an ${ type } global with an incorrectly-typed value: ${ name } ` ,
You can’t perform that action at this time.
0 commit comments