1
0
Fork 0

Corrected Warning stack trace

closure/master
Mike Gerwitz 2011-07-06 19:10:23 -04:00
parent b74e03704b
commit bc3e879956
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ var Warning = exports.Warning = function( e )
this.name = 'Warning'; this.name = 'Warning';
this._error = e; this._error = e;
this.stack = this.stack && this.stack = e.stack &&
this.stack.replace( /^.*?\n+/, e.stack.replace( /^.*?\n+/,
this.name + ': ' + this.message + "\n" this.name + ': ' + this.message + "\n"
); );
}; };