From e80b023db80a11fddc658b31598a483dfce6130d Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 16 Oct 2009 23:03:22 +0000 Subject: [PATCH 1/1] Fixed one stupid CYON bug in what was otherwise an awesome release. --- Library.mm | 3 +++ makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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) -- 2.45.2