fix(lang): fix small typo.

This commit is contained in:
Sekib Omazic 2014-11-08 13:12:25 +01:00 committed by Rado Kirov
parent 398571e3e4
commit 62efb56b0a
1 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ export class StringJoiner {
}
}
export class NumerParseError extends Error {
export class NumberParseError extends Error {
constructor(message) {
this.message = message;
}
@ -83,7 +83,7 @@ export class NumberWrapper {
static parseIntAutoRadix(text:string):int {
var result:int = parseInt(text);
if (isNaN(result)) {
throw new NumerParseError("Invalid integer literal when parsing " + text);
throw new NumberParseError("Invalid integer literal when parsing " + text);
}
return result;
}
@ -103,7 +103,7 @@ export class NumberWrapper {
return result;
}
}
throw new NumerParseError("Invalid integer literal when parsing " + text + " in base " + radix);
throw new NumberParseError("Invalid integer literal when parsing " + text + " in base " + radix);
}
// TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.