summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 54461d2e7..ca9392d98 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -1466,11 +1466,14 @@ public:
}
};
+ // Currently the wasm object always 'has' one Table. It 'exists' if it has been defined or imported.
+ // The table can exist but be empty and have no defined initial or max size.
+ bool exists;
Name name;
Address initial, max;
std::vector<Segment> segments;
- Table() : initial(0), max(kMaxSize) {
+ Table() : exists(false), initial(0), max(kMaxSize) {
name = Name::fromInt(0);
}
};