Skip to content

Commit df32812

Browse files
committed
Fix review comments
1 parent ab0f885 commit df32812

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/vm/src/compatibility.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ fn full_import_name(ie: &Import) -> String {
213213
}
214214

215215
fn check_wasm_capabilities(
216-
exports: &ParsedWasm,
216+
module: &ParsedWasm,
217217
available_capabilities: &HashSet<String>,
218218
) -> VmResult<()> {
219-
let required_capabilities = required_capabilities_from_module(exports);
219+
let required_capabilities = required_capabilities_from_module(module);
220220
if !required_capabilities.is_subset(available_capabilities) {
221221
// We switch to BTreeSet to get a sorted error message
222222
let unavailable: BTreeSet<_> = required_capabilities
@@ -303,7 +303,7 @@ mod tests {
303303
fn check_wasm_tables_works() {
304304
// No tables is fine
305305
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());
307307

308308
// One table (bound)
309309
let wasm = wat::parse_str("(module (table $name 123 123 funcref))").unwrap();

0 commit comments

Comments
 (0)