Require exactly 'true' for truthy reference directive prop (#57782)

This commit is contained in:
Jake Bailey 2024-03-15 14:38:37 -07:00 committed by GitHub
parent 601117644e
commit 76f8de0a0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10511,7 +10511,7 @@ export function processPragmasIntoFields(context: PragmaContext, reportDiagnosti
const libReferenceDirectives = context.libReferenceDirectives;
forEach(toArray(entryOrList) as PragmaPseudoMap["reference"][], arg => {
const { types, lib, path, ["resolution-mode"]: res } = arg.arguments;
if (arg.arguments["no-default-lib"]) {
if (arg.arguments["no-default-lib"] === "true") {
context.hasNoDefaultLib = true;
}
else if (types) {