// if running on older node, ensure that es6-shim is loaded firstif(/^v0.10/.test(process.version)){require('es6-shim');}varassert=require('../assert');vartimers=require('../timers');describe('timers module',function(){it('setImmediate()',function(){returntimers.setImmediate().then(function(result){assert.strictEqual(result,undefined,'');});});it('setImmediate(<arg>)',function(){varobj={};returntimers.setImmediate(obj).then(function(result){assert.strictEqual(result,obj,'');});});it('setTimeout()',function(){returntimers.setTimeout().then(function(result){assert.strictEqual(result,undefined,'');});});it('setTimeout(<num>)',function(){returntimers.setTimeout(15).then(function(result){assert.strictEqual(result,undefined,'');});});it('setTimeout(<num>, <arg>)',function(){varobj={};returntimers.setTimeout(25,obj).then(function(result){assert.strictEqual(result,obj,'');});});});