Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Doesn't work on OS X 10.7.4 with node v0.8.4 #7

Open
dawn110110 opened this issue Jul 26, 2012 · 6 comments
Open

Doesn't work on OS X 10.7.4 with node v0.8.4 #7

dawn110110 opened this issue Jul 26, 2012 · 6 comments

Comments

@dawn110110
Copy link

$ node wsbench ws:// localhost:8989/track

/Users/dawn110110/code/wsbench/wsbench/lib/optparse.js:144
while(l-- > 0) if(LONG_SWITCH_RE(arr[l])) return true;
^
TypeError: object is not a function
at contains_expr (/Users/dawn110110/code/wsbench/wsbench/lib/optparse.js:144:23)
at build_rules (/Users/dawn110110/code/wsbench/wsbench/lib/optparse.js:77:13)
at Object.OptionParser.parse (/Users/dawn110110/code/wsbench/wsbench/lib/optparse.js:224:21)
at Object. (/Users/dawn110110/code/wsbench/wsbench/wsbench:113:4)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)

@mneumegen
Copy link

Same problem here

@ifuyivara
Copy link

Same problem with node v0.8.4

@bananos
Copy link

bananos commented Nov 11, 2012

Same, 10.7.5, node v.0.8.4, Xcode 4.5.1

@bananos
Copy link

bananos commented Nov 11, 2012

Eventually, one needs to upgrade lib/optparse.js by code from here https://raw.github.com/jfd/optparse-js/master/lib/optparse.js

@mayurdabhi
Copy link

Worked for me..!! Thanks bananos !!

@warut-k
Copy link

warut-k commented Jun 20, 2014

Work , Thank you bananos. 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants