Corrected Warning stack trace
parent
b74e03704b
commit
bc3e879956
|
@ -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"
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue