File tree 2 files changed +9
-4
lines changed 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -520,7 +520,9 @@ function ${name}(${args}) {
520
520
includeFile ( 'base64Utils.js' ) ;
521
521
}
522
522
523
- if ( abortExecution ) throw Error ( 'Aborting compilation due to previous errors' ) ;
523
+ if ( abortExecution ) {
524
+ throw Error ( 'Aborting compilation due to previous errors' ) ;
525
+ }
524
526
525
527
// This is the main 'post' pass. Print out the generated code that we have here, together with the
526
528
// rest of the output that we started to print out earlier (see comment on the
@@ -569,8 +571,11 @@ function ${name}(${args}) {
569
571
deps : symbolDeps ,
570
572
asyncFuncs
571
573
} ) ) ;
572
- return ;
574
+ } else {
575
+ finalCombiner ( ) ;
573
576
}
574
577
575
- finalCombiner ( ) ;
578
+ if ( abortExecution ) {
579
+ throw Error ( 'Aborting compilation due to previous errors' ) ;
580
+ }
576
581
}
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ function preprocess(filename) {
133
133
error ( `${ filename } :${ i + 1 } : #error ${ trimmed . substring ( trimmed . indexOf ( ' ' ) ) . trim ( ) } ` ) ;
134
134
}
135
135
} else {
136
- throw new Error ( `${ filename } :${ i + 1 } : Unknown preprocessor directive ${ first } ` ) ;
136
+ error ( `${ filename } :${ i + 1 } : Unknown preprocessor directive ${ first } ` ) ;
137
137
}
138
138
} else {
139
139
if ( showCurrentLine ( ) ) {
You can’t perform that action at this time.
0 commit comments