Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

UTF-8 in identifiers not supported #24

Open
OrangeDog opened this issue Oct 15, 2013 · 1 comment
Open

UTF-8 in identifiers not supported #24

OrangeDog opened this issue Oct 15, 2013 · 1 comment

Comments

@OrangeDog
Copy link

jscoverage node node-cov
jscoverage:stats/controllers/user.js:184: missing : after property id
jscoverage:stats/controllers/user.js:184: SyntaxError: illegal character
jscoverage: parse error in file stats/controllers/user.js

The character in question is a μ being used as an object literal property name.

var data = {
    min: stats.min,
    max: stats.max,
    μ: stats.sum / stats.count,
    σ: Math.sqrt(variance),
    N: stats.count
};

Node and my IDE both handle this fine.

@amertis
Copy link

amertis commented Sep 8, 2014

You can define the encoding of the created files:

jscoverage node node-cov --encoding=UTF-8

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

2 participants