(thread: Thread, stack: Cdp.Runtime.StackTrace)
| 68 | private _lastFrameThread?: Thread; |
| 69 | |
| 70 | public static fromRuntime(thread: Thread, stack: Cdp.Runtime.StackTrace): StackTrace { |
| 71 | const result = new StackTrace(thread); |
| 72 | for (const frame of stack.callFrames) { |
| 73 | if (!frame.url.endsWith(SourceConstants.InternalExtension)) { |
| 74 | result.frames.push(StackFrame.fromRuntime(thread, frame, false)); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | if (stack.parentId) { |
| 79 | result._asyncStackTraceId = stack.parentId; |
| 80 | console.assert(!stack.parent); |
| 81 | } else { |
| 82 | result._appendStackTrace(thread, stack.parent); |
| 83 | } |
| 84 | |
| 85 | return result; |
| 86 | } |
| 87 | |
| 88 | public static fromDebugger( |
| 89 | thread: Thread, |
no test coverage detected