mirror of
https://github.com/github/codeql-action.git
synced 2025-12-26 17:20:10 +08:00
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com> Co-authored-by: Henry Mercer <henrymercer@github.com>
16 lines
346 B
JavaScript
16 lines
346 B
JavaScript
var assert = require('assert');
|
|
var Traverse = require('traverse');
|
|
|
|
exports['traverse an object with nested functions'] = function () {
|
|
var to = setTimeout(function () {
|
|
assert.fail('never ran');
|
|
}, 1000);
|
|
|
|
function Cons (x) {
|
|
clearTimeout(to);
|
|
assert.equal(x, 10);
|
|
};
|
|
Traverse(new Cons(10));
|
|
};
|
|
|