diff options
author | Matt Godbolt <matt@godbolt.org> | 2022-02-28 21:36:31 -0600 |
---|---|---|
committer | Matt Godbolt <matt@godbolt.org> | 2022-02-28 21:36:31 -0600 |
commit | 3cda1776ebaae9e88567a87bbad034590eafa25e (patch) | |
tree | 6692017d1de889426ef9a7e8f95fb54b9a187864 /lib/parsers/asm-parser-dart.js | |
parent | afa4f183df2b1d27083e6df3adcee11d0111faa6 (diff) | |
download | compiler-explorer-gh-2141.tar.gz compiler-explorer-gh-2141.zip |
Handle lines with no opcodesgh-2141
Fixes #3276
Diffstat (limited to 'lib/parsers/asm-parser-dart.js')
-rw-r--r-- | lib/parsers/asm-parser-dart.js | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |