Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index e8329883f7e6eaf44f04ebbccc137e5f106404e1..e3fe381abefd0b5fd636f3dd4e4d1cfbf5517c5f 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -520,9 +520,13 @@ Handle<Object> Isolate::CaptureSimpleStackTrace(Handle<JSReceiver> error_object, |
DCHECK(wasm::IsWasmObject(*wasm_object) || |
wasm_object->IsUndefined(this)); |
- elements = FrameArray::AppendWasmFrame( |
- elements, wasm_object, wasm_function_index, abstract_code, offset, |
- FrameArray::kIsWasmFrame); |
+ int flags = wasm::WasmIsAsmJs(*wasm_object, this) |
+ ? FrameArray::kIsAsmJsWasmFrame |
+ : FrameArray::kIsWasmFrame; |
+ |
+ elements = FrameArray::AppendWasmFrame(elements, wasm_object, |
+ wasm_function_index, |
+ abstract_code, offset, flags); |
} break; |
default: |