Skip to content

Commit 6ea273c

Browse files
Update LKG
1 parent cd06f92 commit 6ea273c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/tsc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80672,7 +80672,7 @@ function createTypeChecker(host) {
8067280672
error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
8067380673
} else {
8067480674
const text = getTextOfPropertyName(member.name);
80675-
if (isNumericLiteralName(text)) {
80675+
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
8067680676
error(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
8067780677
}
8067880678
}

lib/tsserver.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -85416,7 +85416,7 @@ function createTypeChecker(host) {
8541685416
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
8541785417
} else {
8541885418
const text = getTextOfPropertyName(member.name);
85419-
if (isNumericLiteralName(text)) {
85419+
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
8542085420
error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
8542185421
}
8542285422
}

lib/typescript.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83171,7 +83171,7 @@ ${lanes.join("\n")}
8317183171
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
8317283172
} else {
8317383173
const text = getTextOfPropertyName(member.name);
83174-
if (isNumericLiteralName(text)) {
83174+
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
8317583175
error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
8317683176
}
8317783177
}

0 commit comments

Comments
 (0)