Index: src/wasm/wasm-module.h |
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h |
index 00e76c49ff40acdbc1b226a4abcbc34aa59716ca..3c12461f90d0e1f338f4661e4627b2c73eedaf0a 100644 |
--- a/src/wasm/wasm-module.h |
+++ b/src/wasm/wasm-module.h |
@@ -190,7 +190,8 @@ struct WasmModule { |
// switch to libc-2.21 or higher. |
base::SmartPointer<base::Semaphore> pending_tasks; |
- WasmModule(); |
+ WasmModule() : WasmModule(nullptr) {} |
+ explicit WasmModule(byte* module_start); |
// Get a string stored in the module bytes representing a name. |
WasmName GetName(uint32_t offset, uint32_t length) const { |