From: Jay Freeman (saurik) Date: Fri, 2 Jul 2010 07:34:00 +0000 (+0000) Subject: I forgot to flow Replace() to optional argument initializers. X-Git-Tag: v0.9.432~34 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/b17dec6bcc0e9bdbf1933be11b8c5ef846c7a15f I forgot to flow Replace() to optional argument initializers. --- diff --git a/Replace.cpp b/Replace.cpp index 2115772..250b555 100644 --- a/Replace.cpp +++ b/Replace.cpp @@ -511,6 +511,7 @@ CYExpression *CYObject::Replace(CYContext &context) { CYFunctionParameter *CYOptionalFunctionParameter::Replace(CYContext &context, CYBlock &code) { CYFunctionParameter *parameter($ CYFunctionParameter(name_, next_)); parameter = parameter->Replace(context, code); + initializer_ = initializer_->Replace(context); CYVariable *name($ CYVariable(name_)); code.AddPrev($ CYIf($ CYIdentical($ CYTypeOf(name), $S("undefined")), $$->*