Bug 979730 part 4 - Make JS_IsRunning ignore saved frame boundaries. r=luke

This commit is contained in:
Jan de Mooij 2016-05-27 17:58:29 +02:00
parent 62eddae24f
commit 38e56ba989

View File

@ -1055,11 +1055,8 @@ bool
JSContext::currentlyRunning() const
{
for (ActivationIterator iter(runtime()); !iter.done(); ++iter) {
if (iter->cx() == this) {
if (iter->hasSavedFrameChain())
return false;
if (iter->cx() == this)
return true;
}
}
return false;