Skip to content

Commit a1033e7

Browse files
committed
Don't ignore errors in compiler.js --symbols-only
Previously we would report the error but then exit with 0.
1 parent b921f76 commit a1033e7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/jsifier.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,9 @@ function ${name}(${args}) {
520520
includeFile('base64Utils.js');
521521
}
522522

523-
if (abortExecution) throw Error('Aborting compilation due to previous errors');
523+
if (abortExecution) {
524+
throw Error('Aborting compilation due to previous errors');
525+
}
524526

525527
// This is the main 'post' pass. Print out the generated code that we have here, together with the
526528
// rest of the output that we started to print out earlier (see comment on the
@@ -565,6 +567,9 @@ function ${name}(${args}) {
565567
}
566568

567569
if (symbolsOnly) {
570+
if (abortExecution) {
571+
throw Error('Aborting compilation due to previous errors');
572+
}
568573
print(JSON.stringify({
569574
deps: symbolDeps,
570575
asyncFuncs

0 commit comments

Comments
 (0)