h2non / hu

Small, generic functional helper library for node.js and browsers
MIT License
20 stars 3 forks source link

Fix isFinite node 0.8 issue #23

Open h2non opened 10 years ago

h2non commented 10 years ago
isFinite invalid:
     TypeError: Cannot call method 'isFinite' of undefined
      at Object.isFinite (/home/travis/build/h2non/hu/lib/type.js:49:24)
      at Context.<anonymous> (undefined:100:17)
      at callFn (/home/travis/build/h2non/hu/node_modules/mocha/lib/runnable.js:223:21)
      at Test.Runnable.run (/home/travis/build/h2non/hu/node_modules/mocha/lib/runnable.js:214:7)
      at Runner.runTest (/home/travis/build/h2non/hu/node_modules/mocha/lib/runner.js:374:10)
      at Runner.runTests.next (/home/travis/build/h2non/hu/node_modules/mocha/lib/runner.js:452:12)
      at next (/home/travis/build/h2non/hu/node_modules/mocha/lib/runner.js:299:14)
      at Runner.hooks (/home/travis/build/h2non/hu/node_modules/mocha/lib/runner.js:309:7)
      at next (/home/travis/build/h2non/hu/node_modules/mocha/lib/runner.js:247:23)
      at Runner.hook (/home/travis/build/h2non/hu/node_modules/mocha/lib/runner.js:276:5)
      at process.startup.processNextTick.process._tickCallback (node.js:245:9)