Restore script local before goto error, duh (523280, r=igor).
authorBrendan Eich <brendan@mozilla.org>
Wed, 21 Oct 2009 11:34:58 -0700
changeset 34310 319be2c940b8203037edbff0e7916141feab1485
parent 34309 b7cd6baf30643bfb6787781efde0cc4322e0845e
child 34311 2581d8d91679fb288d5067651348e5c17e1951a6
push idunknown
push userunknown
push dateunknown
reviewersigor
bugs523280
milestone1.9.3a1pre
Restore script local before goto error, duh (523280, r=igor).
js/src/jsops.cpp
--- a/js/src/jsops.cpp
+++ b/js/src/jsops.cpp
@@ -2084,16 +2084,17 @@ BEGIN_CASE(JSOP_APPLY)
                 *vp = JSVAL_VOID;
                 regs.sp = vp + 1;
                 goto end_call;
             }
 
             /* Restrict recursion of lightweight functions. */
             if (inlineCallCount >= JS_MAX_INLINE_CALL_COUNT) {
                 js_ReportOverRecursed(cx);
+                script = fp->script;
                 goto error;
             }
 
             /* Compute the total number of stack slots needed by fun. */
             nframeslots = JS_HOWMANY(sizeof(JSInlineFrame), sizeof(jsval));
             atoms = script->atomMap.vector;
             nbytes = (nframeslots + script->nslots) * sizeof(jsval);