diff options
Diffstat (limited to 'src/wasm-validator.h')
-rw-r--r-- | src/wasm-validator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-validator.h b/src/wasm-validator.h index d01e61407..ad2b7e1a3 100644 --- a/src/wasm-validator.h +++ b/src/wasm-validator.h @@ -387,6 +387,9 @@ public: if (curr->kind == ExternalKind::Table) { shouldBeTrue(getModule()->table.imported, curr->name, "Table import record exists but table is not marked as imported"); } + if (curr->kind == ExternalKind::Memory) { + shouldBeTrue(getModule()->memory.imported, curr->name, "Memory import record exists but memory is not marked as imported"); + } } void visitExport(Export* curr) { |