From: Jay Freeman (saurik) Date: Tue, 5 Jun 2012 10:21:41 +0000 (-0700) Subject: Reimplement desugaring of let: function, not with. X-Git-Tag: v0.9.456~30 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/62fa5fc27db989762149373dd94c1b67bf720c25?hp=127c1a9c2cef616211a88e16343614fee9f3b664 Reimplement desugaring of let: function, not with. --- diff --git a/Replace.cpp b/Replace.cpp index 9a27171..d946583 100644 --- a/Replace.cpp +++ b/Replace.cpp @@ -472,8 +472,7 @@ CYStatement *CYLabel::Replace(CYContext &context) { } CYStatement *CYLet::Replace(CYContext &context) { - declarations_->Replace(context); - return $ CYWith($ CYObject(declarations_->Property(context)), code_); + return $E($ CYCall($ CYFunctionExpression(NULL, declarations_->Parameter(context), code_), declarations_->Argument(context))); } void CYMember::Replace_(CYContext &context) {