Skip to content

Commit

Permalink
Use esprima-fb from NPM by default (override via options.esprima).
Browse files Browse the repository at this point in the history
Closes #105.
  • Loading branch information
benjamn committed Aug 15, 2014
1 parent 78137c0 commit 580e943
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var defaults = {
// If you want to use a different branch of esprima, or any other
// module that supports a .parse function, pass that module object to
// recast.parse as options.esprima.
esprima: require("esprima"),
esprima: require("esprima-fb"),

// Number of spaces the pretty-printer should use per tab for
// indentation. If you do not pass this option explicitly, it will be
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"debug": "node ./node_modules/mocha/bin/mocha --debug-brk --reporter spec"
},
"dependencies": {
"esprima": "git+https://github.com/ariya/esprima.git#harmony",
"esprima-fb": "~5001.1.0-dev-harmony-fb",
"source-map": "0.1.32",
"private": "~0.1.5",
"cls": "~0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion test/parens.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require("assert");
var esprima = require("esprima");
var esprima = require("esprima-fb");
var parse = require("../lib/parser").parse;
var Printer = require("../lib/printer").Printer;
var NodePath = require("ast-types").NodePath;
Expand Down

0 comments on commit 580e943

Please sign in to comment.