Created
August 31, 2012 09:41
-
-
Save t2psyto/3550904 to your computer and use it in GitHub Desktop.
jscript な coffeescript で console.log() したいとき
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
これでもよかった
if (typeof console == "undefined")
console = log: (message) -> WScript.Echo(message)