UNPKG

332 BJavaScriptView Raw
1export class BufferedDebugHandler {
2 constructor() {
3 this.buffer = [];
4 }
5 debug(debugMsg) {
6 this.buffer.push(debugMsg);
7 }
8 executeBufferedBlocks() {
9 const logs = this.buffer.map((block) => block());
10 this.buffer = [];
11 return logs;
12 }
13}
14//# sourceMappingURL=debugging.js.map
\No newline at end of file