Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 6efe1f0c440b9e92ffe04986d5080d70805d00d7..3b730278dbfc607d1ce0f5c61073eee688009328 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -1517,11 +1517,7 @@ uint32_t WasmFrame::function_index() const { |
Script* WasmFrame::script() const { |
Handle<JSObject> instance(JSObject::cast(wasm_instance()), isolate()); |
- if (wasm::WasmIsAsmJs(*instance, isolate())) { |
- return *wasm::GetAsmWasmScript(instance); |
- } |
- Handle<WasmDebugInfo> debug_info = wasm::GetDebugInfo(instance); |
- return WasmDebugInfo::GetFunctionScript(debug_info, function_index()); |
+ return *wasm::GetScript(instance); |
} |
int WasmFrame::position() const { |