mozilla / doctorjs

A set of static analysis tools for JavaScript
Other
739 stars 67 forks source link

Object #<EventEmitter> has no method 'uptime' #29

Closed AndrewRayCode closed 12 years ago

AndrewRayCode commented 12 years ago

~ jsctags cache.js

Object # has no method 'uptime' Trace: at cfa2 (/usr/local/lib/cfa2/jscfa.js:3692:15) at getTags (/usr/local/lib/cfa2/jscfa.js:3756:3) at Object.interpret (/usr/local/lib/jsctags/ctags/interp.js:54:21) at Object.scan (/usr/local/lib/jsctags/ctags/index.js:104:16) at processPath (/usr/local/bin/jsctags:189:18) at Object. (/usr/local/bin/jsctags:207:5) at Module._compile (module.js:411:26) at Object..js (module.js:417:10) at Module.load (module.js:343:31) at Function._load (module.js:302:12) Object # has no method 'uptime'

node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Object # has no method 'uptime' at evalFun (/usr/local/lib/cfa2/jscfa.js:3472:15) at evalToplevel (/usr/local/lib/cfa2/jscfa.js:3644:7) at cfa2 (/usr/local/lib/cfa2/jscfa.js:3683:5) at getTags (/usr/local/lib/cfa2/jscfa.js:3756:3) at Object.interpret (/usr/local/lib/jsctags/ctags/interp.js:54:21) at Object.scan (/usr/local/lib/jsctags/ctags/index.js:104:16) at processPath (/usr/local/bin/jsctags:189:18) at Object. (/usr/local/bin/jsctags:207:5) at Module._compile (module.js:411:26) at Object..js (module.js:417:10)

AndrewRayCode commented 12 years ago

I suspect this has to do with me running not-the-latest version of node, v0.4.12. If that is the case, it would be nice if jsctags told you it couldn't run because the latest node is not installed as opposed to stack tracing.

dimvar commented 12 years ago

Yes, that's what it is. See issue #26.