Skip to content

Instantly share code, notes, and snippets.

@tkareine
Created October 7, 2013 13:36
Show Gist options
  • Save tkareine/6868137 to your computer and use it in GitHub Desktop.
Save tkareine/6868137 to your computer and use it in GitHub Desktop.
Missing `then` in `if` expr should cause parsing error in CoffeeScript. Using CoffeeScript 1.6.3 (rev 581af4540ac).
value = if this.require 'aa' else 'bb' # missing `then` in `if` expr
// Generated by CoffeeScript 1.6.3
(function() {
var value;
value = this.require('aa') ? void 0 : 'bb';
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment