Skip to content

Support CoffeeScript 2 features #88

Description

@GeoffreyBooth

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions