Skip to content
Browse files

Fix falafel to work with esprima 1.0.0.

  • Loading branch information...
1 parent 87e1b7d commit e2dd65d464e24d8071b7fe3b1754ccc675dcecde @toolness toolness committed Oct 28, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 index.js
  2. +1 −1 package.json
View
4 index.js
@@ -55,7 +55,7 @@ function insertHelpers (node, parent, chunks) {
node.source = function () {
return chunks.slice(
- node.range[0], node.range[1] + 1
+ node.range[0], node.range[1]
).join('');
};
@@ -72,7 +72,7 @@ function insertHelpers (node, parent, chunks) {
function update (s) {
chunks[node.range[0]] = s;
- for (var i = node.range[0] + 1; i < node.range[1] + 1; i++) {
+ for (var i = node.range[0] + 1; i < node.range[1]; i++) {
chunks[i] = '';
}
};
View
2 package.json
@@ -23,7 +23,7 @@
"test" : "tap test/*.js"
},
"dependencies" : {
- "esprima" : "~0.9.9"
+ "esprima" : "1.0.0"
},
"devDependencies" : {
"tap" : "~0.2.4"

0 comments on commit e2dd65d

Please sign in to comment.
Something went wrong with that request. Please try again.