Skip to content
Browse files

Fix for change in new captureStackTrace behaviour

For the newer v8 versions in node 0.11.x

Signed-off-by: Tim Smart <tim@fostle.com>
  • Loading branch information...
1 parent 812c59b commit b19b612c858cc238e57dab3eed7b57a65c101275 @tim-smart tim-smart committed Jun 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/stack-trace.js
View
2 lib/stack-trace.js
@@ -3,12 +3,12 @@ exports.get = function(belowFn) {
Error.stackTraceLimit = Infinity;
var dummyObject = {};
- Error.captureStackTrace(dummyObject, belowFn || exports.get);
var v8Handler = Error.prepareStackTrace;
Error.prepareStackTrace = function(dummyObject, v8StackTrace) {
return v8StackTrace;
};
+ Error.captureStackTrace(dummyObject, belowFn || exports.get);
var v8StackTrace = dummyObject.stack;
Error.prepareStackTrace = v8Handler;

0 comments on commit b19b612

Please sign in to comment.
Something went wrong with that request. Please try again.