Fix potential race condition

This commit is contained in:
KernelDeimos 2024-06-04 16:28:53 -04:00
parent 04fefc0761
commit 0b0707363c

View File

@ -9,6 +9,7 @@ let stringLength;
// process.exit(0); // process.exit(0);
})(); })();
const surrounding_box = (col, lines, lengths) => { const surrounding_box = (col, lines, lengths) => {
if ( ! stringLength ) return;
if ( ! lengths ) { if ( ! lengths ) {
lengths = lines.map(line => stringLength(line)); lengths = lines.map(line => stringLength(line));
} }