summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r--src/wasm-s-parser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index f244a08f9..0f11bd521 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -1473,7 +1473,7 @@ private:
ex->kind = Export::Table;
} else if (inner[0]->str() == GLOBAL) {
ex->value = inner[1]->str();
- ex->kind = Export::Table;
+ ex->kind = Export::Global;
} else {
WASM_UNREACHABLE();
}
@@ -1487,7 +1487,7 @@ private:
ex->kind = Export::Table;
} else if (s[2]->str() == GLOBAL) {
ex->value = s[3]->str();
- ex->kind = Export::Table;
+ ex->kind = Export::Global;
} else {
WASM_UNREACHABLE();
}