jashkenas/coffee-script — Issue #1899: @prop:value should throw syntax error
Author: aldonline
Created: 2011-11-28 21:07:16+00:00
State: open

## Observed

Passing:

@prop: 'value'

to the coffeescript ( 1.1.3 ) compiler produces:

({
this.prop: 'value'
});

which is invalid javascript syntax.

## Expected

I would expect the compiler to throw a syntax error so as to avoid this error propagating silently to the javascript side of things.