Skip to content

Commit

Permalink
test_runner: no skip diagnose on warning message
Browse files Browse the repository at this point in the history
test_runner: no skip diagnose on warning message
  • Loading branch information
MrJithil committed Dec 31, 2022
1 parent 4830a6c commit 8abd54e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/test_runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ class FileTest extends Test {
break;

case TokenKind.COMMENT:
if (nesting === 1) {
const shouldSkipDiagnostic = !node.comment.startsWith("Warning:") || true;
if (nesting === 1 && shouldSkipDiagnostic) {
// Ignore file top level diagnostics
break;
}
Expand Down

0 comments on commit 8abd54e

Please sign in to comment.