Index: src/runtime/runtime-wasm.cc |
diff --git a/src/runtime/runtime-wasm.cc b/src/runtime/runtime-wasm.cc |
index 090d5b4a40e919ce65fa3a55851561d06f94ccc9..bb5360abe999af124f8f8785735c2009da23eb7f 100644 |
--- a/src/runtime/runtime-wasm.cc |
+++ b/src/runtime/runtime-wasm.cc |
@@ -99,9 +99,9 @@ Object* ThrowRuntimeError(Isolate* isolate, int message_id, int byte_offset, |
// properties). |
Handle<Object> detailed_stack_trace_obj = JSReceiver::GetDataProperty( |
error, isolate->factory()->detailed_stack_trace_symbol()); |
- if (detailed_stack_trace_obj->IsJSArray()) { |
+ if (detailed_stack_trace_obj->IsFixedArray()) { |
Handle<FixedArray> stack_elements( |
- FixedArray::cast(JSArray::cast(*detailed_stack_trace_obj)->elements())); |
+ FixedArray::cast(*detailed_stack_trace_obj)); |
DCHECK_GE(stack_elements->length(), 1); |
Handle<StackFrameInfo> top_frame( |
StackFrameInfo::cast(stack_elements->get(0))); |