maxtaco / coffee-script

IcedCoffeeScript
http://maxtaco.github.com/coffee-script
MIT License
727 stars 58 forks source link

bug with double quuotes? #144

Closed vinnitu closed 9 years ago

vinnitu commented 9 years ago
foo = -> alert "success"

bar = {}
bar["xyz"] = ->
  await foo defer()

do bar["xyz"]

SyntaxError: Unexprected identifier

foo = -> alert "success"

bar = {}
bar['xyz'] = ->
  await foo defer()

do bar["xyz"]

What is the difference?

maxtaco commented 9 years ago

oh i guess so, there's a difference in the emitted debugging code. thanks for pointing this out.