]> git.saurik.com Git - cycript.git/commitdiff
Fix for-of loops (an internal variable was wrong).
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 12 Oct 2015 09:26:00 +0000 (02:26 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 12 Oct 2015 09:26:00 +0000 (02:26 -0700)
Replace.cpp

index f6d904c199a378e6ee090235298090f962868a70..155aa58f2d464cfcd83432c0d03e8a6b700809d6 100644 (file)
@@ -406,7 +406,7 @@ CYFunctionParameter *CYForOfComprehension::Parameter(CYContext &context) const {
 }
 
 CYStatement *CYForOfComprehension::Replace(CYContext &context, CYStatement *statement) const {
-    CYIdentifier *cys($I("cys"));
+    CYIdentifier *cys($I("$cys"));
 
     return $E($C0($F(NULL, $P1($L("$cys")), $$->*
         $E($ CYAssign($V(cys), set_))->*