summaryrefslogtreecommitdiff
path: root/src/shell-interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell-interface.h')
-rw-r--r--src/shell-interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell-interface.h b/src/shell-interface.h
index 8fc1c362d..d82885ced 100644
--- a/src/shell-interface.h
+++ b/src/shell-interface.h
@@ -98,7 +98,7 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface {
void importGlobals(std::map<Name, Literals>& globals, Module& wasm) override {
// add spectest globals
ModuleUtils::iterImportedGlobals(wasm, [&](Global* import) {
- if (import->module == SPECTEST && import->base.startsWith(GLOBAL)) {
+ if (import->module == SPECTEST && import->base.startsWith("global_")) {
TODO_SINGLE_COMPOUND(import->type);
switch (import->type.getBasic()) {
case Type::i32: