fix(BaseException): Support stack traces in BaseException
This commit is contained in:
parent
7308a3acc7
commit
352b6406ad
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue