Skip to content

Instantly share code, notes, and snippets.

@t2psyto
Created August 31, 2012 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t2psyto/3550904 to your computer and use it in GitHub Desktop.
Save t2psyto/3550904 to your computer and use it in GitHub Desktop.
jscript な coffeescript で console.log() したいとき
# console.log()
# for jscript coffee.bat
# https://github.com/thinca/coffee-script-on-jscript
if (typeof console == "undefined")
console = new class
log: (message) ->
WScript.Echo(message)
@t2psyto
Copy link
Author

t2psyto commented Aug 31, 2012

これでもよかった

if (typeof console == "undefined")
console = log: (message) -> WScript.Echo(message)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment