Fast followup fix for thinko (536564, r=jorendorff).
authorBrendan Eich <brendan@mozilla.org>
Thu, 14 Jan 2010 14:22:00 -0800
changeset 37687 f6b37dc8709e3542ce94e9b75d2ff46b08389d1c
parent 37686 7d7eb566cd77eaff69c4f14766480e0812ec11a3
child 37688 09095420f56e469f6354bbeca28f99ca537d1972
push idunknown
push userunknown
push dateunknown
reviewersjorendorff
bugs536564
milestone1.9.3a1pre
Fast followup fix for thinko (536564, r=jorendorff).
js/src/jsparse.cpp
--- a/js/src/jsparse.cpp
+++ b/js/src/jsparse.cpp
@@ -2087,17 +2087,17 @@ JSCompiler::setFunctionKinds(JSFunctionB
             if (PN_TYPE(pn2) == TOK_LC)
 #endif
             if (!(funbox->tcflags & TCF_RETURN_EXPR)) {
                 uintN methodSets = 0, slowMethodSets = 0;
 
                 for (JSParseNode *method = funbox->methods; method; method = method->pn_link) {
                     JS_ASSERT(PN_OP(method) == JSOP_LAMBDA || PN_OP(method) == JSOP_LAMBDA_FC);
                     ++methodSets;
-                    if (!funbox->joinable())
+                    if (!method->pn_funbox->joinable())
                         ++slowMethodSets;
                 }
 
                 if (funbox->shouldUnbrand(methodSets, slowMethodSets))
                     funbox->tcflags |= TCF_FUN_UNBRAND_THIS;
             }
         }