From: Jay Freeman (saurik) Date: Fri, 16 Oct 2009 23:03:22 +0000 (+0000) Subject: Fixed one stupid CYON bug in what was otherwise an awesome release. X-Git-Tag: v0.9.432~334 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/e80b023db80a11fddc658b31598a483dfce6130d?hp=1ef7d0617fe7f188e5bae5649552bac62718acf7 Fixed one stupid CYON bug in what was otherwise an awesome release. --- diff --git a/Library.mm b/Library.mm index 2c642c6..2c22bb1 100644 --- a/Library.mm +++ b/Library.mm @@ -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)); diff --git a/makefile b/makefile index 249611e..7ed35d2 100644 --- 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)