Permalink
Browse files

make tests pass on newer, better versions of node

  • Loading branch information...
1 parent c2a20d7 commit bda753a49d31809f8a9c95f23c7f027a43fbfdda @chrisdickinson committed Mar 15, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/test.js
View
3 test/test.js
@@ -18,8 +18,9 @@ try {
local_unnamed(expected);
} catch(err) {
var traced = trace(err);
+
assert.equal(traced.frames.length, err.stack.split('\n').length - 1);
- assert.equal(traced.frames[0].named_location, '<anonymous>');
+ assert.ok(!!~['<anonymous>', 'local_unnamed'].indexOf(traced.frames[0].named_location));
assert.equal(traced.first_line, err.stack.split('\n')[0]);
assert.strictEqual(traced.original_error, err);

0 comments on commit bda753a

Please sign in to comment.