Index: test/cctest/test-log-stack-tracer.cc |
diff --git a/test/cctest/test-log-stack-tracer.cc b/test/cctest/test-log-stack-tracer.cc |
index 09257bcda26cfa3b79bf81a151d17e1bd06791c3..a4bd2ed0dd0b36e045e902b9cb7e88a2382f3671 100644 |
--- a/test/cctest/test-log-stack-tracer.cc |
+++ b/test/cctest/test-log-stack-tracer.cc |
@@ -81,8 +81,9 @@ static void construct_call(const v8::FunctionCallbackInfo<v8::Value>& args) { |
frame_iterator.Advance(); |
CHECK(frame_iterator.frame()->is_construct()); |
frame_iterator.Advance(); |
- if (frame_iterator.frame()->type() == i::StackFrame::STUB) { |
+ if (i::FLAG_ignition) { |
// Skip over bytecode handler frame. |
+ CHECK(frame_iterator.frame()->type() == i::StackFrame::STUB); |
frame_iterator.Advance(); |
} |
i::StackFrame* calling_frame = frame_iterator.frame(); |