fix: include error message in the stack trace

This commit is contained in:
Misko Hevery 2015-05-23 09:27:12 -07:00
parent d5c528ac2b
commit 8d081ea7af
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ export class BaseException extends Error {
constructor(message?: string) {
super(message);
this.message = message;
this.stack = (<any>new Error()).stack;
this.stack = (<any>new Error(message)).stack;
}
toString(): string { return this.message; }

View File

@ -471,7 +471,7 @@ export function main() {
expect(bindings).toEqual([]);
});
it('should parse a string without a value', () => {
iit('should parse a string without a value', () => {
var bindings = parseTemplateBindings('a');
expect(keys(bindings)).toEqual(['a']);
});