Changeset 153669 in webkit for trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Aug 2, 2013, 2:32:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r153457 r153669 575 575 ASSERT(callFrame == vm->topCallFrame || callFrame == callFrame->lexicalGlobalObject()->globalExec() || callFrame == callFrame->dynamicGlobalObject()->globalExec()); 576 576 577 if (vm->exceptionStack().size()) {578 if (!error.isObject() || asObject(error)->hasProperty(callFrame, vm->propertyNames->stack))579 return;580 }581 582 577 Vector<StackFrame> stackTrace; 583 578 vm->interpreter->getStackTrace(stackTrace); … … 586 581 return; 587 582 588 // Note: 'error' might already have a stack property if it was created by the user (e.g. "new Error"). The stack589 // now, as the error is thrown, might be different from the stack when it was created, so we overwrite it with590 // the current stack unconditionally.583 if (asObject(error)->hasProperty(callFrame, vm->propertyNames->stack)) 584 return; 585 591 586 asObject(error)->putDirect(*vm, vm->propertyNames->stack, vm->interpreter->stackTraceAsString(vm->topCallFrame, stackTrace), ReadOnly | DontDelete); 592 587
Note:
See TracChangeset
for help on using the changeset viewer.