]> git.saurik.com Git - cycript.git/commitdiff
Usage of with needs to create a new damaged scope.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 16 Dec 2015 00:38:29 +0000 (16:38 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 16 Dec 2015 00:38:29 +0000 (16:38 -0800)
Replace.cpp

index 9ffd0c1c5e6fa5a1f14736016904149e0b9ee4b3..2cb447499c7df2fc9428e3ef19d3678aee822f5c 100644 (file)
@@ -1249,7 +1249,10 @@ CYStatement *CYWhile::Replace(CYContext &context) {
 
 CYStatement *CYWith::Replace(CYContext &context) {
     context.Replace(scope_);
+    CYScope scope(true, context);
+    scope.Damage();
     context.ReplaceAll(code_);
+    scope.Close(context);
     return this;
 }