| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 79eb6198ca3f37cde9a0ee0121b56f4fabde7a99..296dc3bb37fe44264679e73df04a93cf2512e842 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -7550,7 +7550,12 @@ void Isolate::GetStackSample(const RegisterState& state, void** frames,
|
| regs.pc = state.pc;
|
| regs.sp = state.sp;
|
| regs.fp = state.fp;
|
| - i::SimulatorHelper::FillRegisters(isolate, ®s);
|
| + if (!i::SimulatorHelper::FillRegisters(isolate, ®s)) {
|
| + sample_info->frames_count = 0;
|
| + sample_info->vm_state = OTHER;
|
| + sample_info->external_callback_entry = nullptr;
|
| + return;
|
| + }
|
| #else
|
| const RegisterState& regs = state;
|
| #endif
|
|
|