Changeset 11614 in webkit for trunk/JavaScriptCore/kjs/interpreter.cpp
- Timestamp:
- Dec 16, 2005, 12:08:23 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/interpreter.cpp
r11527 r11614 110 110 } 111 111 112 Completion Interpreter::evaluate(const UString &code, JSValue *thisV, const UString &) 113 { 114 return evaluate(UString(), 0, code, thisV); 115 } 116 117 Completion Interpreter::evaluate(const UString &sourceURL, int startingLineNumber, const UString &code, JSValue *thisV) 118 { 119 Completion comp = rep->evaluate(code,thisV, sourceURL, startingLineNumber); 120 121 #if APPLE_CHANGES 122 if (shouldPrintExceptions() && comp.complType() == Throw) { 123 JSLock lock; 124 ExecState *exec = rep->globalExec(); 125 char *f = strdup(sourceURL.ascii()); 126 const char *message = comp.value()->toObject(exec)->toString(exec).ascii(); 127 printf("[%d] %s:%s\n", getpid(), f, message); 128 129 free(f); 130 } 131 #endif 132 133 return comp; 112 Completion Interpreter::evaluate(const UString& sourceURL, int startingLineNumber, const UString& code, JSValue* thisV) 113 { 114 return evaluate(sourceURL, startingLineNumber, code.data(), code.size()); 115 } 116 117 Completion Interpreter::evaluate(const UString& sourceURL, int startingLineNumber, const UChar* code, int codeLength, JSValue* thisV) 118 { 119 Completion comp = rep->evaluate(code, codeLength, thisV, sourceURL, startingLineNumber); 120 121 if (shouldPrintExceptions() && comp.complType() == Throw) { 122 JSLock lock; 123 ExecState *exec = rep->globalExec(); 124 CString f = sourceURL.UTF8String(); 125 CString message = comp.value()->toObject(exec)->toString(exec).UTF8String(); 126 printf("[%d] %s:%s\n", getpid(), f.c_str(), message.c_str()); 127 } 128 129 return comp; 134 130 } 135 131
Note:
See TracChangeset
for help on using the changeset viewer.