Skip to content

Commit b60f936

Browse files
committed
Enquote undefineds.
1 parent 4ef4882 commit b60f936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ namespace ts {
10531053
errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element.name, extraKeyDiagnosticMessage, keyText));
10541054
}
10551055
const value = convertPropertyValueToJson(element.initializer, option);
1056-
if (typeof keyText !== undefined && typeof value !== undefined) {
1056+
if (typeof keyText !== "undefined" && typeof value !== "undefined") {
10571057
result[keyText] = value;
10581058
// Notify key value set, if user asked for it
10591059
if (jsonConversionNotifier &&

0 commit comments

Comments
 (0)