From 86207e7d4c50d1caa28799d698335272def4b313 Mon Sep 17 00:00:00 2001 From: Tim Linquist Date: Fri, 17 Aug 2012 10:50:53 -0700 Subject: [PATCH] Invalid syntax for "if" statement in latest coffeescript 2.2.0 has a much more sophisticated parser. Empty ifs are no longer valid syntax. Use a no-op function to demonstrate validate coffeescript parsing. --- spec/jasmine/coffeescript_error/spec.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/jasmine/coffeescript_error/spec.coffee b/spec/jasmine/coffeescript_error/spec.coffee index c431477..da05be0 100644 --- a/spec/jasmine/coffeescript_error/spec.coffee +++ b/spec/jasmine/coffeescript_error/spec.coffee @@ -1,2 +1,3 @@ -if +if (->) + noOp = "complete"