Skip to content
Permalink
Browse files

enable code coverage support with ES6 arrow functions, template strin…

…gs and default params

There are additional options that could be enabled as well:
https://github.com/eslint/espree#usage
  • Loading branch information
jmonster committed Jun 25, 2015
1 parent 5185295 commit 60556cdc4898a8db793c71b92c817b443d9af4b8
Showing with 14 additions and 1 deletion.
  1. +14 −1 lib/coverage.js
@@ -208,7 +208,20 @@ internals.instrument = function (filename) {

// Parse tree

var tree = Espree.parse(content, { loc: true, comment: true, range: true });
var tree = Espree.parse(content, {
loc: true,
comment: true,
range: true,
ecmaFeatures: {
blockBindings: true,
arrowFunctions: true,
templateStrings: true,
generators: true,
forOf: true,
binaryLiterals: true,
octalLiterals: true,
}
});

// Process comments

0 comments on commit 60556cd

Please sign in to comment.
You can’t perform that action at this time.