Changeset 15404 in webkit for trunk/JavaScriptCore/API/minidom.c
- Timestamp:
- Jul 13, 2006, 1:56:52 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/minidom.c
r15376 r15404 51 51 JSStringRef script = JSStringCreateWithUTF8CString(scriptUTF8); 52 52 JSValueRef exception; 53 JSValueRef result = JSEvaluate (context, script, NULL, NULL, 0, &exception);53 JSValueRef result = JSEvaluateScript(context, script, NULL, NULL, 0, &exception); 54 54 if (result) 55 55 printf("PASS: Test script executed successfully.\n"); 56 56 else { 57 57 printf("FAIL: Test script threw exception:\n"); 58 JSStringRef exceptionIString = JSValueToStringCopy(context, exception );58 JSStringRef exceptionIString = JSValueToStringCopy(context, exception, NULL); 59 59 CFStringRef exceptionCF = JSStringCopyCFString(kCFAllocatorDefault, exceptionIString); 60 60 CFShow(exceptionCF); … … 82 82 { 83 83 if (argc > 0) { 84 JSStringRef string = JSValueToStringCopy(context, argv[0] );84 JSStringRef string = JSValueToStringCopy(context, argv[0], NULL); 85 85 size_t numChars = JSStringGetMaximumUTF8CStringSize(string); 86 86 char stringUTF8[numChars];
Note:
See TracChangeset
for help on using the changeset viewer.