summaryrefslogtreecommitdiff
path: root/tools/lint.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lint.js')
-rwxr-xr-xtools/lint.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/lint.js b/tools/lint.js
index 5f97e3cb7..9b3260b9e 100755
--- a/tools/lint.js
+++ b/tools/lint.js
@@ -88,7 +88,12 @@ async function dlint() {
}),
);
}
- await Promise.allSettled(pending);
+ const results = await Promise.allSettled(pending);
+ for (const result of results) {
+ if (result.status === "rejected") {
+ throw new Error(result.reason);
+ }
+ }
}
// `prefer-primordials` has to apply only to files related to bootstrapping,