]> git.saurik.com Git - cycript.git/commitdiff
Fix usage of numeric lierals
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 27 Apr 2010 05:13:47 +0000 (05:13 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 27 Apr 2010 05:13:47 +0000 (05:13 +0000)
Output.cpp
todo.txt

index a3765dad8976de084c6a42319755ce1ab5b9dc75..d6c3a038aeda70a4d6a1c606e889524c84860f6a 100644 (file)
@@ -326,7 +326,7 @@ void CYDeclarations::Output(CYOutput &out, CYFlags flags) const {
 }
 
 void CYDirectMember::Output(CYOutput &out, CYFlags flags) const {
-    object_->Output(out, Precedence(), CYLeft(flags));
+    object_->Output(out, Precedence(), CYLeft(flags) | CYNoInteger);
     if (const char *word = property_->Word())
         out << '.' << word;
     else
index ec979ec1ec99c9c8de715b33449ec2a2b0fd63b8..0aaa39694fe3e0ef880f5f5e5942b31ec2448e76 100644 (file)
--- a/todo.txt
+++ b/todo.txt
@@ -22,7 +22,6 @@ throw CYJSError should probably be replaced with CYThrow() across the board
 figure out what to do about global context refs: I really really want to retain the bastards
 the concept of NULL pooling is entirely incorrect and sad... bad... evil... need to work on this... really
 NSArray's .toString() and .toLocaleString() fail hard, as Array.prototype.to*String are Array-specific
-(4).toString() is legal, but I'm stripping the ()'s somehow in the serializer
 applyOnMainThread, when done at console, loops the cyonifier
 special work needs to be done to correctly handle the "arguments" symbol: Declare("arguments", ...Special)
 at the Program level I seem to be eating away all of the var statements