Constellation / ibrik

CoffeeScript meets Istanbul - code coverage tool for CoffeeScript
BSD 2-Clause "Simplified" License
79 stars 32 forks source link

Can't parse prototype #20

Closed drabiter closed 9 years ago

drabiter commented 10 years ago

Ibrik can't parse code that using prototype, raising Syntax error. Here is example,

@myFunc(@::, 'foo')

Error: Syntax error on line XX, column XX: unexpected ',' (\u002C)
michaelficarra commented 10 years ago

Postfix :: has been slated for removal from the language for a while now. The compiler ibrik uses has already removed support. Use @prototype instead. For prototype properties, you can still use binary :: as in a::b.