raw-stacktrace
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -9,4 +9,8 @@ | ||
traces.formatter(function(err, st){ | ||
return "custom stack trace"; | ||
}); | ||
(function testError(){ | ||
throw new Error("test"); | ||
}).bind({ context: "someContext" })(); |
@@ -67,2 +67,7 @@ var EventEmitter = require('events').EventEmitter | ||
var rawCallSites = !opts.rawCallSites? false : !!opts.rawCallSites; | ||
emitter.formatter = function(fn) { | ||
hasCustomFormatter = true; | ||
formatter = fn; | ||
}; | ||
@@ -69,0 +74,0 @@ Error.prepareStackTrace = function customPrepare(err, callsites){ |
@@ -5,3 +5,3 @@ { | ||
"description": "Emit raw stacktraces when errors are thrown", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "" |
4015
78