Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Tranformation error with generator functions #247

Closed
yanickrochon opened this issue Aug 26, 2014 · 2 comments
Closed

Tranformation error with generator functions #247

yanickrochon opened this issue Aug 26, 2014 · 2 comments

Comments

@yanickrochon
Copy link

Using this command

node --harmony node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha

in my package.json file generates this message

Transformation error; return original code
{ [Error: Line [line]: Unexpected token *]
  index: [index],
  lineNumber: [lineNum],
  column: [column],
  description: 'Unexpected token *' }

for all the files using generator functions. Thus, all my modules with generators fail to have metrics.

This is a follow up of the issue #44.

@yanickrochon
Copy link
Author

I just read about other issues already reporting this (#129, and #66). The README file should show how to use this branch (harmony) with npm.

@yanickrochon
Copy link
Author

It seems that istanbul-harmony works.

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

No branches or pull requests

1 participant