mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 12:57:32 -06:00
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
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user