Created
July 9, 2012 08:35
-
-
Save yaniv-aknin/3075120 to your computer and use it in GitHub Desktop.
odd coffeescript 1.3.3 behaviour with superflous indentation on first line
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
$ cat > ok.coffee | |
1 | |
2 | |
$ cat > bad.coffee | |
1 | |
2 | |
$ coffee -cs < ok.coffee | |
// Generated by CoffeeScript 1.3.3 | |
(function() { | |
1; | |
2; | |
}).call(this); | |
$ coffee -cs < bad.coffee | |
// Generated by CoffeeScript 1.3.3 | |
(function() { | |
1; | |
}).call(this); | |
$ # notice how "2" disappeared, no error, no warning! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment