Skip to content

Commit

Permalink
fixed #250 - stacktrace incorrectly filtered on MS Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bjouhier committed Nov 25, 2014
1 parent 36c1e48 commit f3eed78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/fibers-fast/runtime.js
Expand Up @@ -220,9 +220,9 @@ function makeError(e, incomplete) {
Object.defineProperty(ne, 'stack', {
get: function() {
return (e.stack + (extra ? extra.stack : "")).split('\n').filter(function(frame) {
return frame.indexOf('/fibers-fast/runtime.js') < 0 &&
frame.indexOf('/util/future.js') < 0 &&
frame.indexOf('__streamline$') < 0;
return !/[\\\/]fibers-fast[\\\/]runtime\.js/.test(frame) &&
!/[\\\/]util[\\\/]future\.js/.test(frame) &&
frame.indexOf('__streamline$') < 0;
}).join('\n');
},
enumerable: true,
Expand Down
4 changes: 2 additions & 2 deletions lib/fibers/runtime.js
Expand Up @@ -259,8 +259,8 @@ function makeError(e, incomplete) {
Object.defineProperty(ne, 'stack', {
get: function() {
return (e.stack + (extra ? extra.stack : "")).split('\n').filter(function(frame) {
return frame.indexOf('/fibers/runtime.js') < 0 &&
frame.indexOf('/util/future.js') < 0 &&
return !/[\\\/]fibers[\\\/]runtime\.js/.test(frame) &&
!/[\\\/]util[\\\/]future\.js/.test(frame) &&
frame.indexOf('__streamline$') < 0;
}).join('\n');
},
Expand Down

0 comments on commit f3eed78

Please sign in to comment.