Changeset 15593 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp
- Timestamp:
- Jul 23, 2006, 11:06:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r15468 r15593 58 58 JSValue *ex = exec->exception(); \ 59 59 exec->clearException(); \ 60 debugExceptionIfNeeded(exec, ex); \ 60 61 return Completion(Throw, ex); \ 61 62 } \ … … 66 67 if (exec->hadException()) { \ 67 68 setExceptionDetailsIfNeeded(exec); \ 69 debugExceptionIfNeeded(exec, exec->exception()); \ 68 70 return jsUndefined(); \ 69 71 } \ … … 74 76 if (exec->hadException()) { \ 75 77 setExceptionDetailsIfNeeded(exec); \ 78 debugExceptionIfNeeded(exec, exec->exception()); \ 76 79 return List(); \ 77 80 } \ … … 267 270 exception->put(exec, "sourceURL", jsString(currentSourceURL(exec))); 268 271 } 272 } 273 } 274 275 void Node::debugExceptionIfNeeded(ExecState* exec, JSValue* exceptionValue) 276 { 277 Debugger* dbg = exec->dynamicInterpreter()->debugger(); 278 if (dbg && !dbg->hasHandledException(exec, exceptionValue)) { 279 bool cont = dbg->exception(exec, currentSourceId(exec), m_line, exceptionValue); 280 if (!cont) 281 dbg->imp()->abort(); 269 282 } 270 283 } … … 2270 2283 KJS_CHECKEXCEPTION 2271 2284 2285 debugExceptionIfNeeded(exec, v); 2286 2272 2287 return Completion(Throw, v); 2273 2288 }
Note:
See TracChangeset
for help on using the changeset viewer.