Skip to content

Commit

Permalink
test for stupid .constructor() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jul 28, 2010
1 parent 6993515 commit 6b9d85d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/obj.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env node
var sys = require('sys');
var Traverse = require('traverse');

exports['traverse an object with nested functions'] = function (assert) {
function Cons (x) {
assert.equal(x, 10);
};
Traverse(new Cons(10));
};

0 comments on commit 6b9d85d

Please sign in to comment.