summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s2wasm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index 31632c9dc..9c50aeedd 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -509,8 +509,14 @@ class S2WasmBuilder {
else if (match("data")) {}
else if (match("ident")) skipToEOL();
else if (match("section")) parseToplevelSection();
- else if (match("align") || match("p2align") || match("import_global"))
+ else if (match("align") || match("p2align")) skipToEOL();
+ else if (match("import_global")) {
skipToEOL();
+ skipWhitespace();
+ if (match(".size")) {
+ skipToEOL();
+ }
+ }
else if (match("globl")) parseGlobl();
else if (match("functype")) parseFuncType();
else skipObjectAlias(true);