Changeset 30679 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Feb 29, 2008, 3:48:42 PM (17 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function_object.cpp
r30534 r30679 169 169 170 170 // notify debugger that source has been parsed 171 // send empty sourceURL to indicate constructed code 171 172 Debugger* dbg = exec->dynamicGlobalObject()->debugger(); 172 if (dbg) { 173 // send empty sourceURL to indicate constructed code 174 bool cont = dbg->sourceParsed(exec, sourceId, UString(), body, lineNumber, errLine, errMsg); 175 if (!cont) { 176 dbg->imp()->abort(); 177 return new JSObject(); 178 } 179 } 173 if (dbg && !dbg->sourceParsed(exec, sourceId, UString(), body, lineNumber, errLine, errMsg)) 174 return new JSObject(); 180 175 181 176 // No program node == syntax error - throw a syntax error -
trunk/JavaScriptCore/kjs/internal.h
r28468 r30679 104 104 DebuggerImp() { 105 105 globalObjects = 0; 106 isAborted = false;107 106 } 108 107 109 void abort() { isAborted = true; }110 bool aborted() const { return isAborted; }111 112 108 AttachedGlobalObject* globalObjects; 113 bool isAborted;114 109 }; 115 110 -
trunk/JavaScriptCore/kjs/nodes.cpp
r30651 r30679 366 366 } 367 367 Debugger* dbg = exec->dynamicGlobalObject()->debugger(); 368 if (dbg && !dbg->hasHandledException(exec, exceptionValue)) { 369 bool cont = dbg->exception(exec, currentSourceId(exec), m_line, exceptionValue); 370 if (!cont) 371 dbg->imp()->abort(); 372 } 368 if (dbg && !dbg->hasHandledException(exec, exceptionValue)) 369 dbg->exception(exec, currentSourceId(exec), m_line, exceptionValue); 373 370 } 374 371 … … 4634 4631 { 4635 4632 if (Debugger* dbg = exec->dynamicGlobalObject()->debugger()) { 4636 if (!dbg->callEvent(exec, sourceId(), lineNo(), exec->function(), *exec->arguments())) { 4637 dbg->imp()->abort(); 4633 if (!dbg->callEvent(exec, sourceId(), lineNo(), exec->function(), *exec->arguments())) 4638 4634 return exec->setInterruptedCompletion(); 4639 }4640 4635 } 4641 4636 … … 4645 4640 if (exec->completionType() == Throw) 4646 4641 exec->setException(result); 4647 if (!dbg->returnEvent(exec, sourceId(), lineNo(), exec->function())) { 4648 dbg->imp()->abort(); 4642 if (!dbg->returnEvent(exec, sourceId(), lineNo(), exec->function())) 4649 4643 return exec->setInterruptedCompletion(); 4650 }4651 4644 } 4652 4645
Note:
See TracChangeset
for help on using the changeset viewer.