diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/wasm.h b/src/wasm.h index d313c6e4b..ec2f56ec4 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -801,9 +801,11 @@ public: curr.print(o, indent); o << '\n'; } - doIndent(o, indent); - table.print(o, indent); - o << '\n'; + if (table.vars.size() > 0) { + doIndent(o, indent); + table.print(o, indent); + o << '\n'; + } for (auto& curr : functions) { doIndent(o, indent); curr->print(o, indent); |