File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments