(error, title, isSoft)
| 5234 | } |
| 5235 | |
| 5236 | function formatAndLogError(error, title, isSoft) { |
| 5237 | if (typeof console !== "undefined") { |
| 5238 | var message; |
| 5239 | if (util.isObject(error)) { |
| 5240 | var stack = error.stack; |
| 5241 | message = title + formatStack(stack, error); |
| 5242 | } else { |
| 5243 | message = title + String(error); |
| 5244 | } |
| 5245 | if (typeof printWarning === "function") { |
| 5246 | printWarning(message, isSoft); |
| 5247 | } else if (typeof console.log === "function" || |
| 5248 | typeof console.log === "object") { |
| 5249 | console.log(message); |
| 5250 | } |
| 5251 | } |
| 5252 | } |
| 5253 | |
| 5254 | function fireRejectionEvent(name, localHandler, reason, promise) { |
| 5255 | var localEventFired = false; |
no outgoing calls
no test coverage detected