Index: src/wasm/wasm-js.cc |
diff --git a/src/wasm/wasm-js.cc b/src/wasm/wasm-js.cc |
index bcae1a6948acd01f18f72e3b358ac69681638903..b5a3baf30b9b7d46dae5dc4896987754b27f8b29 100644 |
--- a/src/wasm/wasm-js.cc |
+++ b/src/wasm/wasm-js.cc |
@@ -104,10 +104,8 @@ void VerifyModule(const v8::FunctionCallbackInfo<v8::Value>& args) { |
RawBuffer buffer = GetRawBufferSource(args[0], &thrower); |
if (thrower.error()) return; |
- i::Zone zone(isolate->allocator(), ZONE_NAME); |
- internal::wasm::ModuleResult result = |
- internal::wasm::DecodeWasmModule(isolate, &zone, buffer.start, buffer.end, |
- true, internal::wasm::kWasmOrigin); |
+ internal::wasm::ModuleResult result = internal::wasm::DecodeWasmModule( |
+ isolate, buffer.start, buffer.end, true, internal::wasm::kWasmOrigin); |
if (result.failed()) { |
thrower.CompileFailed("", result); |