You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					16 lines
				
				346 B
			
		
		
			
		
	
	
					16 lines
				
				346 B
			| 
											2 years ago
										 | 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)); | ||
|  | }; | ||
|  | 
 |