diff options
Diffstat (limited to 'src/qml/jsruntime/qv4jscall_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4jscall_p.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4jscall_p.h b/src/qml/jsruntime/qv4jscall_p.h index c6d320ac20..70ddaf59c5 100644 --- a/src/qml/jsruntime/qv4jscall_p.h +++ b/src/qml/jsruntime/qv4jscall_p.h @@ -146,10 +146,12 @@ struct ScopedStackFrame { return; frame.jsFrame = reinterpret_cast<CallData *>(scope.alloc(sizeof(CallData)/sizeof(Value))); frame.jsFrame->context = context; - if (auto *parent = frame.parentFrame()) + if (auto *parent = frame.parentFrame()) { frame.v4Function = parent->v4Function; - else + frame.instructionPointer = parent->instructionPointer; + } else { frame.v4Function = nullptr; + } scope.engine->currentStackFrame = &frame; } ~ScopedStackFrame() { |