Index: src/wasm/module-decoder.cc |
diff --git a/src/wasm/module-decoder.cc b/src/wasm/module-decoder.cc |
index 829e5d4acadf5a9610c0fadfacb1e071cb60a304..a0ee912174676bda6c8dea93788ef5ab1af2d048 100644 |
--- a/src/wasm/module-decoder.cc |
+++ b/src/wasm/module-decoder.cc |
@@ -238,7 +238,8 @@ class ModuleDecoder : public Decoder { |
pos = pc_; |
{ |
uint32_t magic_version = consume_u32("wasm version"); |
- if (magic_version != kWasmVersion) { |
+ if (magic_version != kWasmVersion && |
+ magic_version != kWasmLegacyVersion) { |
error(pos, pos, |
"expected version %02x %02x %02x %02x, " |
"found %02x %02x %02x %02x", |