File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80672,7 +80672,7 @@ function createTypeChecker(host) {
80672
80672
error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
80673
80673
} else {
80674
80674
const text = getTextOfPropertyName(member.name);
80675
- if (isNumericLiteralName(text)) {
80675
+ if (isNumericLiteralName(text) && !isInfinityOrNaNString(text) ) {
80676
80676
error(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
80677
80677
}
80678
80678
}
Original file line number Diff line number Diff line change @@ -85416,7 +85416,7 @@ function createTypeChecker(host) {
85416
85416
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
85417
85417
} else {
85418
85418
const text = getTextOfPropertyName(member.name);
85419
- if (isNumericLiteralName(text)) {
85419
+ if (isNumericLiteralName(text) && !isInfinityOrNaNString(text) ) {
85420
85420
error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
85421
85421
}
85422
85422
}
Original file line number Diff line number Diff line change @@ -83171,7 +83171,7 @@ ${lanes.join("\n")}
83171
83171
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
83172
83172
} else {
83173
83173
const text = getTextOfPropertyName(member.name);
83174
- if (isNumericLiteralName(text)) {
83174
+ if (isNumericLiteralName(text) && !isInfinityOrNaNString(text) ) {
83175
83175
error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
83176
83176
}
83177
83177
}
You can’t perform that action at this time.
0 commit comments