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 {
|
// No subclass so that we preserve error stack.
|
||||||
constructor(message){
|
export var BaseException = Error;
|
||||||
this.message = message;
|
|
||||||
}
|
|
||||||
|
|
||||||
toString():String {
|
|
||||||
return this.message;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// JS has NaN !== NaN
|
// JS has NaN !== NaN
|
||||||
export function looseIdentical(a, b):boolean {
|
export function looseIdentical(a, b):boolean {
|
||||||
|
|
Loading…
Reference in New Issue