Skip to content

Commit 76f8de0

Browse files
authored
Require exactly 'true' for truthy reference directive prop (microsoft#57782)
1 parent 6011176 commit 76f8de0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10511,7 +10511,7 @@ export function processPragmasIntoFields(context: PragmaContext, reportDiagnosti
1051110511
const libReferenceDirectives = context.libReferenceDirectives;
1051210512
forEach(toArray(entryOrList) as PragmaPseudoMap["reference"][], arg => {
1051310513
const { types, lib, path, ["resolution-mode"]: res } = arg.arguments;
10514-
if (arg.arguments["no-default-lib"]) {
10514+
if (arg.arguments["no-default-lib"] === "true") {
1051510515
context.hasNoDefaultLib = true;
1051610516
}
1051710517
else if (types) {

0 commit comments

Comments
 (0)