Index: test/cctest/wasm/test-run-wasm-module.cc |
diff --git a/test/cctest/wasm/test-run-wasm-module.cc b/test/cctest/wasm/test-run-wasm-module.cc |
index 54f851bab5da914f004063287dced3d9352e3d51..4938408a1d924d39651eaff946e1f75016c87225 100644 |
--- a/test/cctest/wasm/test-run-wasm-module.cc |
+++ b/test/cctest/wasm/test-run-wasm-module.cc |
@@ -240,8 +240,8 @@ class WasmSerializationTest { |
ErrorThrower thrower(current_isolate(), ""); |
v8::Local<v8::WasmCompiledModule> deserialized_module; |
CHECK(Deserialize().ToLocal(&deserialized_module)); |
- Handle<JSObject> module_object = |
- Handle<JSObject>::cast(v8::Utils::OpenHandle(*deserialized_module)); |
+ Handle<WasmModuleObject> module_object = Handle<WasmModuleObject>::cast( |
+ v8::Utils::OpenHandle(*deserialized_module)); |
{ |
DisallowHeapAllocation assume_no_gc; |
Handle<WasmCompiledModule> compiled_part( |