summaryrefslogtreecommitdiff
path: root/src/shell-interface.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-21 15:30:12 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-21 15:30:12 -0700
commitc79bbb19b59161e0768674816b477f74355912b1 (patch)
tree05ee48cda6eb33fb49c10d452189d920ec6004df /src/shell-interface.h
parentda134d909f0b9dbd49545ceed77e37721b32f0d1 (diff)
downloadbinaryen-c79bbb19b59161e0768674816b477f74355912b1.tar.gz
binaryen-c79bbb19b59161e0768674816b477f74355912b1.tar.bz2
binaryen-c79bbb19b59161e0768674816b477f74355912b1.zip
error on putting spectest.print in a table
Diffstat (limited to 'src/shell-interface.h')
-rw-r--r--src/shell-interface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shell-interface.h b/src/shell-interface.h
index 8cb7c2672..b9a90131b 100644
--- a/src/shell-interface.h
+++ b/src/shell-interface.h
@@ -122,6 +122,10 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface {
case f64: globals[import->name] = Literal(double(666.6)); break;
default: WASM_UNREACHABLE();
}
+ } else if (import->kind == Import::Memory && import->module == SPECTEST && import->base == MEMORY) {
+ // imported memory has initial 1 and max 2
+ wasm.memory.initial = 1;
+ wasm.memory.max = 2;
}
}
}