From 0b0707363cdb3cb4317d361c7614cbaede362cc0 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Tue, 4 Jun 2024 16:28:53 -0400 Subject: [PATCH] Fix potential race condition --- packages/backend/src/fun/dev-console-ui-utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/fun/dev-console-ui-utils.js b/packages/backend/src/fun/dev-console-ui-utils.js index db9ac2a4..aaf8259e 100644 --- a/packages/backend/src/fun/dev-console-ui-utils.js +++ b/packages/backend/src/fun/dev-console-ui-utils.js @@ -9,6 +9,7 @@ let stringLength; // process.exit(0); })(); const surrounding_box = (col, lines, lengths) => { + if ( ! stringLength ) return; if ( ! lengths ) { lengths = lines.map(line => stringLength(line)); }