Skip to content

Commit

Permalink
Replace esprima with espree
Browse files Browse the repository at this point in the history
Provides support for ES6 features such as generators.

Suggested in hapijs#332
  • Loading branch information
Josiah committed Apr 6, 2015
1 parent 9994ef8 commit 9229daa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/coverage.js
Expand Up @@ -7,7 +7,7 @@

var Fs = require('fs');
var Path = require('path');
var Esprima = require('esprima');
var Espree = require('espree');
var sourceMapSupport = require('source-map-support');


Expand Down Expand Up @@ -203,7 +203,7 @@ internals.instrument = function (filename) {

// Parse tree

var tree = Esprima.parse(content, { loc: true, comment: true, range: true });
var tree = Espree.parse(content, { loc: true, comment: true, range: true });

// Process comments

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"bossy": "1.x.x",
"esprima": "1.x.x",
"espree": "2.x.x",
"handlebars": "2.x.x",
"items": "1.x.x",
"diff": "1.x.x",
Expand Down

0 comments on commit 9229daa

Please sign in to comment.