From 62fa5fc27db989762149373dd94c1b67bf720c25 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 5 Jun 2012 03:21:41 -0700 Subject: [PATCH 1/1] Reimplement desugaring of let: function, not with. --- Replace.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) { -- 2.45.2