fix(BaseException): Support stack traces in BaseException

This commit is contained in:
Tobias Bosch 2014-11-13 15:14:57 -08:00
parent 7308a3acc7
commit 352b6406ad
1 changed files with 2 additions and 9 deletions

View File

@ -172,15 +172,8 @@ export class FunctionWrapper {
}
}
export class BaseException extends Error {
constructor(message){
this.message = message;
}
toString():String {
return this.message;
}
}
// No subclass so that we preserve error stack.
export var BaseException = Error;
// JS has NaN !== NaN
export function looseIdentical(a, b):boolean {