From 3cda1776ebaae9e88567a87bbad034590eafa25e Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Mon, 28 Feb 2022 21:36:31 -0600 Subject: Handle lines with no opcodes Fixes #3276 --- lib/parsers/asm-parser-dart.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/parsers/asm-parser-dart.js') diff --git a/lib/parsers/asm-parser-dart.js b/lib/parsers/asm-parser-dart.js index eab026700..840f41ba2 100644 --- a/lib/parsers/asm-parser-dart.js +++ b/lib/parsers/asm-parser-dart.js @@ -24,8 +24,8 @@ import * as utils from '../utils'; -import { AsmParser } from './asm-parser'; -import { AsmRegex } from './asmregex'; +import {AsmParser} from './asm-parser'; +import {AsmRegex} from './asmregex'; export class DartAsmParser extends AsmParser { constructor() { @@ -125,7 +125,7 @@ export class DartAsmParser extends AsmParser { match = line.match(this.asmOpcodeRe); if (match) { const address = parseInt(match.groups.address, 16); - const opcodes = match.groups.opcodes.split(' ').filter(x => !!x); + const opcodes = (match.groups.opcodes || '').split(' ').filter(x => !!x); const disassembly = ' ' + AsmRegex.filterAsmLine(match.groups.disasm, filters); const destMatch = line.match(this.destRe); if (destMatch) { -- cgit v1.2.3