@@ -73,7 +73,7 @@ test(() => {
73
73
} ,
74
74
get ( o , x ) {
75
75
if ( x === "index" ) {
76
- return "u32 " ;
76
+ return "i32 " ;
77
77
}
78
78
return 0 ;
79
79
} ,
@@ -135,20 +135,20 @@ test(() => {
135
135
test ( ( ) => {
136
136
const argument = { "initial" : 1 } ;
137
137
const memory = new WebAssembly . Memory ( argument ) ;
138
- assert_Memory ( memory , { "size" : 1 , "index" : "u32 " } ) ;
138
+ assert_Memory ( memory , { "size" : 1 , "index" : "i32 " } ) ;
139
139
} , "Memory with index parameter omitted" ) ;
140
140
141
141
test ( ( ) => {
142
- const argument = { "initial" : 1 , "index" : "u32 " } ;
142
+ const argument = { "initial" : 1 , "index" : "i32 " } ;
143
143
const memory = new WebAssembly . Memory ( argument ) ;
144
- assert_Memory ( memory , { "size" : 1 , "index" : "u32 " } ) ;
145
- } , "Memory with u32 index constructor" ) ;
144
+ assert_Memory ( memory , { "size" : 1 , "index" : "i32 " } ) ;
145
+ } , "Memory with i32 index constructor" ) ;
146
146
147
147
test ( ( ) => {
148
- const argument = { "initial" : 1 , "index" : "u64 " } ;
148
+ const argument = { "initial" : 1 , "index" : "i64 " } ;
149
149
const memory = new WebAssembly . Memory ( argument ) ;
150
- assert_Memory ( memory , { "size" : 1 , "index" : "u64 " } ) ;
151
- } , "Memory with u64 index constructor" ) ;
150
+ assert_Memory ( memory , { "size" : 1 , "index" : "i64 " } ) ;
151
+ } , "Memory with i64 index constructor" ) ;
152
152
153
153
test ( ( ) => {
154
154
assert_throws_js ( TypeError , ( ) => new WebAssembly . Memory ( { "initial" : 1 , "index" : "none" } ) ) ;
0 commit comments