Skip to content

Commit

Permalink
Update LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Mar 19, 2024
1 parent cd06f92 commit 6ea273c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/tsc.js
Expand Up @@ -80672,7 +80672,7 @@ function createTypeChecker(host) {
error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
} else {
const text = getTextOfPropertyName(member.name);
if (isNumericLiteralName(text)) {
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
error(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/tsserver.js
Expand Up @@ -85416,7 +85416,7 @@ function createTypeChecker(host) {
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
} else {
const text = getTextOfPropertyName(member.name);
if (isNumericLiteralName(text)) {
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/typescript.js
Expand Up @@ -83171,7 +83171,7 @@ ${lanes.join("\n")}
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
} else {
const text = getTextOfPropertyName(member.name);
if (isNumericLiteralName(text)) {
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
}
}
Expand Down

0 comments on commit 6ea273c

Please sign in to comment.