(error, ignoreSelf)
| 5054 | } |
| 5055 | |
| 5056 | function longStackTracesAttachExtraTrace(error, ignoreSelf) { |
| 5057 | if (canAttachTrace(error)) { |
| 5058 | var trace = this._trace; |
| 5059 | if (trace !== undefined) { |
| 5060 | if (ignoreSelf) trace = trace._parent; |
| 5061 | } |
| 5062 | if (trace !== undefined) { |
| 5063 | trace.attachExtraTrace(error); |
| 5064 | } else if (!error.__stackCleaned__) { |
| 5065 | var parsed = parseStackAndMessage(error); |
| 5066 | util.notEnumerableProp(error, "stack", |
| 5067 | parsed.message + "\n" + parsed.stack.join("\n")); |
| 5068 | util.notEnumerableProp(error, "__stackCleaned__", true); |
| 5069 | } |
| 5070 | } |
| 5071 | } |
| 5072 | |
| 5073 | function checkForgottenReturns(returnValue, promiseCreated, name, promise, |
| 5074 | parent) { |
nothing calls this directly
no test coverage detected