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
I've submitted a patch to fix this by setting process.argv[1] to __filename within coffee. See the pull request at 1092.
Not sure about process.argv[0], though... I think it's best to keep that as 'node'. In principle, CoffeeScript code could be run under other CommonJS frameworks that define process.argv, so pinging process.argv[0] should tell you which environment you're running under. Don't you think?
With the patch, process.argv should be the same whether you run
Hi!
Running
coffee test.coffee
givesprocess.argv == [node-path, coffee-path]
thus info about the script being run is lost.Any kludge hope to cope?
TIA,
--Vladimir
The text was updated successfully, but these errors were encountered: