(repl, command)
| 40 | } |
| 41 | |
| 42 | function evalCommand(repl, command) { |
| 43 | return new Promise((resolve, reject) => { |
| 44 | repl.eval( |
| 45 | command, |
| 46 | repl.context, |
| 47 | 'debugger-repl-test', |
| 48 | (error, result) => { |
| 49 | if (error) { |
| 50 | reject(error); |
| 51 | } else { |
| 52 | resolve(result); |
| 53 | } |
| 54 | }, |
| 55 | ); |
| 56 | }); |
| 57 | } |
| 58 | |
| 59 | async function assertCommandWaitsForInit(repl, command, gate, calls) { |
| 60 | let settled = false; |
no test coverage detected
searching dependent graphs…