From 76f8de0a0ddc17d025295f90856d5e89327740e6 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 15 Mar 2024 14:38:37 -0700 Subject: [PATCH] Require exactly 'true' for truthy reference directive prop (#57782) --- src/compiler/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index eaa8bbef472..7545cf5c908 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -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) {