We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aac74a commit 8189925Copy full SHA for 8189925
lib/protocol/sequences/Sequence.js
@@ -12,7 +12,7 @@ function Sequence(callback) {
12
this._ended = false;
13
14
// Experimental: Long stack trace support
15
- this._callSite = (new Error).stack.replace(/.+\n/, '');
+ this._callSite = new Error;
16
}
17
18
Sequence.determinePacket = function(byte) {
@@ -41,7 +41,7 @@ Sequence.prototype._addLongStackTrace = function(err) {
41
return;
42
43
44
- err.stack += delimiter + this._callSite;
+ err.stack += delimiter + this._callSite.stack.replace(/.+\n/, '');
45
};
46
47
Sequence.prototype.end = function(err) {
0 commit comments