Fixed stringification of null and undefined log message classes in JS logging.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4788 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
1c1769ba72
commit
95b6e5f175
@ -4046,7 +4046,6 @@
|
||||
COPY_PHASE_STRIP = NO;
|
||||
HEADER_SEARCH_PATHS = "$(HEADER_SEARCH_PATHS_QUOTED_1)";
|
||||
HEADER_SEARCH_PATHS_QUOTED_1 = "\"$(SRCROOT)/Cocoa-deps/Ogg Vorbis\"";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
||||
OTHER_CFLAGS = "-DLOADSAVEGUI";
|
||||
};
|
||||
name = Debug;
|
||||
@ -4057,7 +4056,6 @@
|
||||
buildSettings = {
|
||||
HEADER_SEARCH_PATHS = "$(HEADER_SEARCH_PATHS_QUOTED_1)";
|
||||
HEADER_SEARCH_PATHS_QUOTED_1 = "\"$(SRCROOT)/Cocoa-deps/Ogg Vorbis\"";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
||||
OTHER_CFLAGS = "-DLOADSAVEGUI";
|
||||
};
|
||||
name = Deployment;
|
||||
|
@ -239,7 +239,7 @@ static JSBool GlobalLog(JSContext *context, uintN argc, jsval *vp)
|
||||
}
|
||||
else
|
||||
{
|
||||
messageClass = OOStringFromJSValue(context, OOJS_ARGV[0]);
|
||||
messageClass = OOStringFromJSValueEvenIfNull(context, OOJS_ARGV[0]);
|
||||
message = [NSString concatenationOfStringsFromJavaScriptValues:OOJS_ARGV + 1 count:argc - 1 separator:@", " inContext:context];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user