mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1246122 - Don't crash in InvokeInterruptCallback if there are no JS scripts on the stack. r=shu
This commit is contained in:
parent
8e4b9d2930
commit
48f722ad99
@ -580,7 +580,7 @@ InvokeInterruptCallback(JSContext* cx)
|
||||
// invoke the onStep handler.
|
||||
if (cx->compartment()->isDebuggee()) {
|
||||
ScriptFrameIter iter(cx);
|
||||
if (iter.script()->stepModeEnabled()) {
|
||||
if (!iter.done() && iter.script()->stepModeEnabled()) {
|
||||
RootedValue rval(cx);
|
||||
switch (Debugger::onSingleStep(cx, &rval)) {
|
||||
case JSTRAP_ERROR:
|
||||
|
Loading…
Reference in New Issue
Block a user