@@ -126,9 +126,9 @@ const tests = [
126
126
errorMsg : "Too many element segments" ,
127
127
makeModule : ( builder , limit ) => {
128
128
builder . addFunction ( null , kSig_v_v ) . addBody ( [ ] ) ;
129
- builder . setFunctionTableLength ( 1 ) ;
130
- builder . function_table_inits . length = limit ;
131
- builder . function_table_inits . fill ( { base : 0 , is_global : false , array : [ 0 ] } )
129
+ builder . setTableLength ( 1 ) ;
130
+ builder . element_segments . length = limit ;
131
+ builder . element_segments . fill ( { base :0 , is_global :false , array :[ 0 ] } ) ;
132
132
}
133
133
} ) ,
134
134
// Test 14
@@ -137,7 +137,7 @@ const tests = [
137
137
body ( ) {
138
138
assert . doesNotThrow ( ( ) => new WebAssembly . Table ( { element : "anyfunc" , initial : MaxTableSize } ) ) ;
139
139
assert . doesNotThrow ( ( ) => new WebAssembly . Table ( { element : "anyfunc" , initial : MaxTableSize , maximum : MaxTableSize } ) ) ;
140
- assert . doesNotThrow ( ( ) => new WebAssembly . Table ( { element : "anyfunc" , maximum : MaxTableSize } ) ) ;
140
+ assert . throws ( ( ) => new WebAssembly . Table ( { element : "anyfunc" , maximum : MaxTableSize } ) ) ;
141
141
assert . throws ( ( ) => new WebAssembly . Table ( { element : "anyfunc" , initial : MaxTableSize + 1 } ) ) ;
142
142
assert . throws ( ( ) => new WebAssembly . Table ( { element : "anyfunc" , initial : MaxTableSize + 1 , maximum : MaxTableSize + 1 } ) ) ;
143
143
assert . throws ( ( ) => new WebAssembly . Table ( { element : "anyfunc" , maximum : MaxTableSize + 1 } ) ) ;
0 commit comments