Bug 835277 part 3 - Call IonFrameIterator::script in GetTopIonJSScript. r=nbp

This commit is contained in:
Jan de Mooij 2013-01-31 11:50:04 +01:00
parent c199d8e4e6
commit 77beb7506c

View File

@ -98,8 +98,7 @@ GetTopIonJSScript(JSContext *cx, const SafepointIndex **safepointIndexOut, void
*returnAddrOut = (void *) iter.returnAddressToFp();
JS_ASSERT(iter.isScripted());
IonJSFrameLayout *frame = static_cast<IonJSFrameLayout*>(iter.current());
return ScriptFromCalleeToken(frame->calleeToken());
return iter.script();
}
} // namespace ion