From ea25a2a3dbd308f349e48ee2158c80de2fbb1535 Mon Sep 17 00:00:00 2001 From: RabsRincon Date: Wed, 8 Jan 2020 10:59:22 +0100 Subject: [PATCH] Overly defensive fix for COMPILER-EXPLORER-5QF It was caused by COMPILER-EXPLORER-5W1 as far as I can tell, but double-fixing it does not hurt --- static/panes/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/panes/compiler.js b/static/panes/compiler.js index 56ae494da..9c2396b8c 100644 --- a/static/panes/compiler.js +++ b/static/panes/compiler.js @@ -341,7 +341,7 @@ Compiler.prototype.resize = function () { Compiler.prototype.getLabelAtPosition = function (position) { var asmLine = this.assembly[position.lineNumber - 1]; var column = position.column; - var labels = asmLine.labels; + var labels = asmLine.labels || []; for (var i = 0; i < labels.length; ++i) { if (column >= labels[i].range.startCol &&