You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node crashes with TypeError: domain.enter is not a function when a recognized option is passed after --domain but not also before it. For example:
$ bitly-client --version
1.4.0
$ bitly-client --domain j.mp --version
events.js:157
domain.enter();
^
TypeError: domain.enter is not a function
at Command.emit (events.js:157:12)
at Command.parseOptions (/usr/local/lib/node_modules/bitly-client/node_modules/commander/index.js:702:14)
at Command.parse (/usr/local/lib/node_modules/bitly-client/node_modules/commander/index.js:455:21)
at Object.<anonymous> (/usr/local/lib/node_modules/bitly-client/index.js:85:4)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:457:10)
at startup (node.js:136:18)
It does not crash if only unrecognized options are passed after --domain:
Node crashes with
TypeError: domain.enter is not a function
when a recognized option is passed after--domain
but not also before it. For example:It does not crash if only unrecognized options are passed after
--domain
:It does not crash if a recognized option is passed before and after
--domain
:This appears to be a known issue upstream ( tj/commander.js#404 ) and will presumably be fixed in
commander@3.0
.The text was updated successfully, but these errors were encountered: