Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CoffeeScript 2 features #88

Open
GeoffreyBooth opened this issue Aug 23, 2017 · 2 comments
Open

Support CoffeeScript 2 features #88

GeoffreyBooth opened this issue Aug 23, 2017 · 2 comments

Comments

@GeoffreyBooth
Copy link

Adding require 'coffee-coverage/register-istanbul' inside Cakefile’s runTests throws errors for the files with new features added in CoffeeScript 2 (note filenames):

CoverageError: Could not parse documentation/examples/jsx.coffee:
[stdin]:9:4: error: missing / (unclosed regex)
  </aside>
   ^

CoverageError: Could not parse documentation/examples/object_spread.coffee:
SyntaxError: unexpected ...

CoverageError: Could not parse documentation/examples/type_annotations.coffee:
SyntaxError: unexpected : string

And import or export statements, added in 1.11, still aren’t supported (#82):

CoverageError: Could not compile documentation/examples/modules.coffee after instrumenting:
SyntaxError: import statements must be at top-level scope
@etamponi
Copy link
Contributor

I am pretty sure #91 isn't ready for a code base so large, but it might be worth a try? import/export aren't supported yet, but it might be a good starting point.

@jwalton
Copy link
Contributor

jwalton commented Dec 13, 2017

#91 has been merged and published as v3.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants