Changeset 27879 in webkit for trunk/JavaScriptCore
- Timestamp:
- Nov 17, 2007, 3:14:40 PM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/minidom.c
r27207 r27879 2 2 /* 3 3 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 4 * Copyright (C) 2007 Alp Toker <[email protected]> 4 5 * 5 6 * Redistribution and use in source and binary forms, with or without … … 26 27 27 28 #include "JSNode.h" 29 #include <stdio.h> 30 #include <stdlib.h> 28 31 #include <wtf/Assertions.h> 29 32 #include <wtf/UnusedParam.h> … … 57 60 printf("FAIL: Test script threw exception:\n"); 58 61 JSStringRef exceptionIString = JSValueToStringCopy(context, exception, NULL); 59 CFStringRef exceptionCF = JSStringCopyCFString(kCFAllocatorDefault, exceptionIString); 60 CFShow(exceptionCF); 61 CFRelease(exceptionCF); 62 size_t exceptionUTF8Size = JSStringGetMaximumUTF8CStringSize(exceptionIString); 63 char* exceptionUTF8 = (char*)malloc(exceptionUTF8Size); 64 JSStringGetUTF8CString(exceptionIString, exceptionUTF8, exceptionUTF8Size); 65 printf("%s\n", exceptionUTF8); 66 free(exceptionUTF8); 62 67 JSStringRelease(exceptionIString); 63 68 } -
trunk/JavaScriptCore/ChangeLog
r27875 r27879 1 2007-11-17 Alp Toker <[email protected]> 2 3 Reviewed by Eric. 4 5 http://bugs.webkit.org/show_bug.cgi?id=16032 6 JS minidom is not portable 7 8 Use a plain UTF-8 string instead of a CFString. 9 10 Print to stdout, not stderr like CFShow() would have done, since that 11 behaviour seems unintentional. 12 13 * API/minidom.c: 14 (main): 15 1 16 2007-11-17 Steve Falkenburg <[email protected]> 2 17
Note:
See TracChangeset
for help on using the changeset viewer.