File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,10 +213,10 @@ fn full_import_name(ie: &Import) -> String {
213
213
}
214
214
215
215
fn check_wasm_capabilities (
216
- exports : & ParsedWasm ,
216
+ module : & ParsedWasm ,
217
217
available_capabilities : & HashSet < String > ,
218
218
) -> VmResult < ( ) > {
219
- let required_capabilities = required_capabilities_from_module ( exports ) ;
219
+ let required_capabilities = required_capabilities_from_module ( module ) ;
220
220
if !required_capabilities. is_subset ( available_capabilities) {
221
221
// We switch to BTreeSet to get a sorted error message
222
222
let unavailable: BTreeSet < _ > = required_capabilities
@@ -303,7 +303,7 @@ mod tests {
303
303
fn check_wasm_tables_works ( ) {
304
304
// No tables is fine
305
305
let wasm = wat:: parse_str ( "(module)" ) . unwrap ( ) ;
306
- assert ! ( ParsedWasm :: parse( & wasm) . unwrap( ) . memories . is_empty( ) ) ;
306
+ assert ! ( ParsedWasm :: parse( & wasm) . unwrap( ) . tables . is_empty( ) ) ;
307
307
308
308
// One table (bound)
309
309
let wasm = wat:: parse_str ( "(module (table $name 123 123 funcref))" ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments