diff --git a/js/src/jsapi.c b/js/src/jsapi.c index 1c22cdbc7ef..24b9f510f35 100644 --- a/js/src/jsapi.c +++ b/js/src/jsapi.c @@ -4473,6 +4473,7 @@ JS_RestoreFrameChain(JSContext *cx, JSStackFrame *fp) if (!fp) return; + JS_ASSERT(cx->dormantFrameChain == fp); cx->fp = fp; cx->dormantFrameChain = fp->dormantNext; fp->dormantNext = NULL;