@@ -126,9 +126,9 @@ const tests = [
126126 errorMsg : "Too many element segments" ,
127127 makeModule : ( builder , limit ) => {
128128 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 ] } ) ;
132132 }
133133 } ) ,
134134 // Test 14
@@ -137,7 +137,7 @@ const tests = [
137137 body ( ) {
138138 assert . doesNotThrow ( ( ) => new WebAssembly . Table ( { element : "anyfunc" , initial : MaxTableSize } ) ) ;
139139 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 } ) ) ;
141141 assert . throws ( ( ) => new WebAssembly . Table ( { element : "anyfunc" , initial : MaxTableSize + 1 } ) ) ;
142142 assert . throws ( ( ) => new WebAssembly . Table ( { element : "anyfunc" , initial : MaxTableSize + 1 , maximum : MaxTableSize + 1 } ) ) ;
143143 assert . throws ( ( ) => new WebAssembly . Table ( { element : "anyfunc" , maximum : MaxTableSize + 1 } ) ) ;
0 commit comments