Browse files

Stop using the removed magic __stack global getter

  • Loading branch information...
1 parent b5df8fc commit 984b2e8d0de6a7f2900b6d5311684c1b20409afc @ForbesLindesay ForbesLindesay 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 984b2e8

Please sign in to comment.