Index: src/wasm/module-decoder.cc |
diff --git a/src/wasm/module-decoder.cc b/src/wasm/module-decoder.cc |
index 39ecc422a8f145e4e3c22c41d8bd93b9a6840355..e3fd820cdbf7c1a30604bb3ea30db22edccb7f99 100644 |
--- a/src/wasm/module-decoder.cc |
+++ b/src/wasm/module-decoder.cc |
@@ -178,7 +178,9 @@ class ModuleDecoder : public Decoder { |
public: |
ModuleDecoder(Zone* zone, const byte* module_start, const byte* module_end, |
ModuleOrigin origin) |
- : Decoder(module_start, module_end), module_zone(zone), origin_(origin) { |
+ : Decoder(module_start, module_end), |
+ module_zone(zone), |
+ origin_(FLAG_assume_asmjs_origin ? kAsmJsOrigin : origin) { |
result_.start = start_; |
if (end_ < start_) { |
error(start_, "end is less than start"); |