Index: src/wasm/wasm-js.cc |
diff --git a/src/wasm/wasm-js.cc b/src/wasm/wasm-js.cc |
index 0e030a28c467ef6e00af8c7b7f4fad90b48ccf21..557cb043cacf1970a1fdeb8897df91dc7bd38e16 100644 |
--- a/src/wasm/wasm-js.cc |
+++ b/src/wasm/wasm-js.cc |
@@ -535,8 +535,8 @@ void WebAssemblyMemoryGrow(const v8::FunctionCallbackInfo<v8::Value>& args) { |
i::Handle<i::JSObject>::cast(Utils::OpenHandle(*args.This())); |
i::Handle<i::Object> instance_object( |
receiver->GetInternalField(kWasmMemoryInstanceObject), i_isolate); |
- i::Handle<i::JSObject> instance( |
- i::Handle<i::JSObject>::cast(instance_object)); |
+ i::Handle<i::WasmInstanceObject> instance( |
+ i::Handle<i::WasmInstanceObject>::cast(instance_object)); |
// TODO(gdeepti) Implement growing memory when shared by different |
// instances. |