Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1430)

Unified Diff: src/wasm/module-decoder.cc

Issue 2681993003: [wasm] Accept version 0x1 binaries. (Closed)
Patch Set: Add new expected outputs for inspector tests. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/wasm/wasm-module.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « no previous file | src/wasm/wasm-module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698