File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export class StringJoiner {
6868 }
6969}
7070
71- export class NumerParseError extends Error {
71+ export class NumberParseError extends Error {
7272 constructor ( message ) {
7373 this . message = message ;
7474 }
@@ -83,7 +83,7 @@ export class NumberWrapper {
8383 static parseIntAutoRadix ( text :string ) :int {
8484 var result :int = parseInt ( text ) ;
8585 if ( isNaN ( result ) ) {
86- throw new NumerParseError ( "Invalid integer literal when parsing " + text ) ;
86+ throw new NumberParseError ( "Invalid integer literal when parsing " + text ) ;
8787 }
8888 return result ;
8989 }
@@ -103,7 +103,7 @@ export class NumberWrapper {
103103 return result ;
104104 }
105105 }
106- throw new NumerParseError ( "Invalid integer literal when parsing " + text + " in base " + radix ) ;
106+ throw new NumberParseError ( "Invalid integer literal when parsing " + text + " in base " + radix ) ;
107107 }
108108
109109 // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.
You can’t perform that action at this time.
0 commit comments