Browse files

Merge pull request #2 from ForbesLindesay/patch-1

Stop using the removed magic __stack global getter
  • Loading branch information...
2 parents b5df8fc + 984b2e8 commit a131b4abdaa9d8727af5b54807fb2eb1fb5d86ea @tj committed Feb 3, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 index.js
View
3 index.js
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -22,7 +21,7 @@ module.exports = process.env.NO_ASSERT
function assert(expr) {
if (expr) return;
- var stack = __stack;
+ var stack = callsite();
var call = stack[1];
var file = call.getFileName();
var lineno = call.getLineNumber();

0 comments on commit a131b4a

Please sign in to comment.