]> git.saurik.com Git - cycript.git/commitdiff
The arguments variable needs to be declared Magic.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 16 Dec 2015 00:37:00 +0000 (16:37 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 16 Dec 2015 00:37:00 +0000 (16:37 -0800)
Replace.cpp

index c78f380ac874e736702b36c19ba7564924b45f8d..e95f5e16f499d70dc755b956063b889a2e408751 100644 (file)
@@ -533,6 +533,8 @@ void CYFunction::Replace(CYContext &context) {
 
     CYScope scope(!localize, context);
 
+    $I("arguments")->Replace(context, CYIdentifierMagic);
+
     parameters_->Replace(context, code_);
 
     context.ReplaceAll(code_);