diff options
-rw-r--r-- | lib/base-compiler.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base-compiler.ts b/lib/base-compiler.ts index 942a49ce0..60d05d969 100644 --- a/lib/base-compiler.ts +++ b/lib/base-compiler.ts @@ -1444,7 +1444,7 @@ export class BaseCompiler implements ICompiler { asm: ir.asm, }; - if (result.asm[result.asm.length - 1].text === '[truncated; too many lines]') { + if (result.asm.length > 0 && result.asm[result.asm.length - 1].text === '[truncated; too many lines]') { return result; } |