Changeset 27879 in webkit for trunk/JavaScriptCore/API
- Timestamp:
- Nov 17, 2007, 3:14:40 PM (18 years ago)
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.