]> git.saurik.com Git - cycript.git/commitdiff
Fixed one stupid CYON bug in what was otherwise an awesome release.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 16 Oct 2009 23:03:22 +0000 (23:03 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 16 Oct 2009 23:03:22 +0000 (23:03 +0000)
Library.mm
makefile

index 2c642c61b9fbc2a4c38f4a12dbf795f54837bd9b..2c22bb10598c6ce86467be883642e24807be2aea 100644 (file)
@@ -1405,6 +1405,9 @@ NSString *CYCopyNSCYON(id value) {
 }
 
 NSString *CYCopyNSCYON(JSContextRef context, JSValueRef value, JSValueRef *exception) {
+    if (JSValueIsNull(context, value))
+        return [@"null" retain];
+
     CYTry {
         CYPoolTry {
             return CYCopyNSCYON(CYCastNSObject(NULL, context, value));
index 249611eb680e1e3e710c94cab723256c70dd731b..7ed35d28151ae31fe531dd3f392ee139b6e91c36 100644 (file)
--- a/makefile
+++ b/makefile
@@ -4,7 +4,7 @@ else
 target := $(PKG_TARG)-
 endif
 
-flags := -mthumb -g3 -O0 -Wall -Werror -I. -fno-common
+flags := -mthumb -g0 -O3 -Wall -Werror -I. -fno-common
 flags += -F${PKG_ROOT}/System/Library/PrivateFrameworks
 
 svn := $(shell svnversion)