Corrected Warning stack trace
parent
b74e03704b
commit
bc3e879956
|
@ -60,8 +60,8 @@ var Warning = exports.Warning = function( e )
|
|||
this.name = 'Warning';
|
||||
this._error = e;
|
||||
|
||||
this.stack = this.stack &&
|
||||
this.stack.replace( /^.*?\n+/,
|
||||
this.stack = e.stack &&
|
||||
e.stack.replace( /^.*?\n+/,
|
||||
this.name + ': ' + this.message + "\n"
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue