Skip to content
Browse files

Merge pull request #2 from thechurch/bug/node-0.11

Fix for change in new captureStackTrace behaviour
  • Loading branch information...
2 parents 812c59b + b19b612 commit 9a865d2d398b5028b7f14599f6a71b38e32b3bcc @felixge 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 9a865d2

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