Skip to content

Commit

Permalink
bump stack-utils to 0.3.0
Browse files Browse the repository at this point in the history
stack-utils now normalizes to unix path separators *before* appling the `internals` filter. Regexps no longer need to account for backslashes.

stack-utils@0.3.0 also brings long-stack-trace support
  • Loading branch information
jamestalmage authored and isaacs committed Jan 17, 2016
1 parent b9ddd71 commit 2af06c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ var StackUtils = require('stack-utils')

module.exports = new StackUtils({
internals: StackUtils.nodeInternals().concat([
/node_modules[\\\/]tap[\\\/](.*?)\.js:[0-9]:[0-9]\)?$/
/node_modules\/tap\/(.*?)\.js:[0-9]:[0-9]\)?$/
])
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"opener": "^1.4.1",
"readable-stream": "^2.0.2",
"signal-exit": "^2.0.0",
"stack-utils": "^0.2.0",
"stack-utils": "^0.3.0",
"supports-color": "^1.3.1",
"tap-mocha-reporter": "0.0 || 1",
"tap-parser": "^1.2.2",
Expand Down
4 changes: 4 additions & 0 deletions test/segv.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
int main (void) {
char *s = "hello world";
*s = 'H';
}

0 comments on commit 2af06c5

Please sign in to comment.