Skip to content

Commit 2a591bd

Browse files
committed
Make JSDoc parsing slow again for perf testing
1 parent 5a35509 commit 2a591bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/compiler/scanner.ts

+5
Original file line numberDiff line numberDiff line change
@@ -2290,6 +2290,11 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean
22902290
}
22912291

22922292
function shouldParseJSDoc() {
2293+
// eslint-disable-next-line no-constant-condition
2294+
if (1 === 1) {
2295+
return true;
2296+
}
2297+
22932298
switch (jsDocParsingMode) {
22942299
case JSDocParsingMode.ParseAll:
22952300
return true;

0 commit comments

Comments
 (0)