Skip to content

Commit 4134d79

Browse files
numberic.
1 parent dd94819 commit 4134d79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8018,7 +8018,7 @@ module ts {
80188018

80198019
function checkNumericLiteral(node: LiteralExpression): Type {
80208020
// Grammar checking
8021-
checkGrammarNumbericLiteral(node);
8021+
checkGrammarNumericLiteral(node);
80228022
return numberType;
80238023
}
80248024

@@ -12561,7 +12561,7 @@ module ts {
1256112561
// Grammar checking for computedPropertName and shorthandPropertyAssignment
1256212562
checkGrammarForInvalidQuestionMark(prop,(<PropertyAssignment>prop).questionToken, Diagnostics.An_object_member_cannot_be_declared_optional);
1256312563
if (name.kind === SyntaxKind.NumericLiteral) {
12564-
checkGrammarNumbericLiteral(<Identifier>name);
12564+
checkGrammarNumericLiteral(<Identifier>name);
1256512565
}
1256612566
currentKind = Property;
1256712567
}
@@ -13113,7 +13113,7 @@ module ts {
1311313113
}
1311413114
}
1311513115

13116-
function checkGrammarNumbericLiteral(node: Identifier): boolean {
13116+
function checkGrammarNumericLiteral(node: Identifier): boolean {
1311713117
// Grammar checking
1311813118
if (node.flags & NodeFlags.OctalLiteral) {
1311913119
if (node.parserContextFlags & ParserContextFlags.StrictMode) {

0 commit comments

Comments
 (0)