Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index e847a698a8e010db67143a4b352880be0e9a6b40..a9e696ba4fc36798bdbdef5fdc30ef64e274a89b 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -1494,7 +1494,7 @@ Address WasmFrame::GetCallerStackPointer() const { |
Object* WasmFrame::wasm_instance() const { |
Object* ret = wasm::GetOwningWasmInstance(LookupCode()); |
- if (ret == nullptr) ret = *(isolate()->factory()->undefined_value()); |
+ if (ret == nullptr) ret = isolate()->heap()->undefined_value(); |
return ret; |
} |