-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Description
Does ember-script preserve the full set of coffeescript syntax?
I tried it today and the compiler caught a couple of unexpected errors (all compiling fine in coffee-script:
ActionView::Template::Error (Error: Syntax error on line 84, column 5: unexpected '.' (\u002E)
81 :
82 : $.ajax
83 : url: 'foo'
84 : .done ->
^^ :~~~~^
85 : doSomething()
86 :
An explicit bracket resolves the above:
$.ajax(
url: 'foo'
).done ->
doSomething()ActionView::Template::Error (Error: Syntax error on line 18, column 19: unexpected '=' (\u003D)
17 :
18 : if foo && bar = 'value'
^^ :~~~~~~~~~~~~~~~~~~~^
19 : doSomething()
Again an explicit bracket resolves it:
if foo && (bar = 'value')
doSomething()Metadata
Metadata
Assignees
Labels
No labels