+2005-05-09 Chris Blumenberg <cblu@apple.com>
+
+ Workaround gcc 3.3 internal compiler errors.
+
+ Reviewed by darin.
+
+ * bindings/objc/WebScriptObject.mm:
+ (-[WebScriptObject stringRepresentation]): call [NSString stringWithCString:encoding] rather than using @""
+
2005-05-09 Darin Adler <darin@apple.com>
* Makefile.am: Don't set up PBXIntermediatesDirectory explicitly;
#define LOG_EXCEPTION(exec) \
if (Interpreter::shouldPrintExceptions()) \
- NSLog (@"%s:%d:[%d] JavaScript exception: %s\n", __FILE__, __LINE__, getpid(), exec->exception().toObject(exec).get(exec, messagePropertyName).toString(exec).ascii());
+ printf("%s:%d:[%d] JavaScript exception: %s\n", __FILE__, __LINE__, getpid(), exec->exception().toObject(exec).get(exec, messagePropertyName).toString(exec).ascii());
@implementation WebScriptObjectPrivate
- (NSString *)stringRepresentation
{
if (![self _isSafeScript])
- return @"Undefined";
+ // This is a workaround for a gcc 3.3 internal compiler error.
+ return [NSString stringWithCString:"Undefined" encoding:NSASCIIStringEncoding];
Interpreter::lock();
Object thisObj = Object(const_cast<ObjectImp*>([self _imp]));