(_ctx)
| 80 | let renderedConsole = ""; |
| 81 | |
| 82 | const brk = function (_ctx) { |
| 83 | console.log("=== HDB///_hyperscript/debugger ==="); |
| 84 | |
| 85 | // Print initial context at startup |
| 86 | for (const v of Object.keys(ctx)) { |
| 87 | if (v == "meta") continue; |
| 88 | consoleHistory.push(v); |
| 89 | renderedConsole += makeConsoleHistoryEntry(v, ctx[v]); |
| 90 | } |
| 91 | |
| 92 | hdbCounter++; |
| 93 | |
| 94 | ui(); |
| 95 | return new Promise((resolve, reject) => { |
| 96 | bus.addEventListener( |
| 97 | "continue", |
| 98 | () => { |
| 99 | resolve(runtime.findNext(cmd, ctx)); |
| 100 | cmd = null; |
| 101 | }, |
| 102 | { once: true }, |
| 103 | ); |
| 104 | }); |
| 105 | }; |
| 106 | |
| 107 | const continueExec = function () { |
| 108 | bus.dispatchEvent(new Event("continue")); |
nothing calls this directly
no test coverage detected