Skip to content

Commit e3d0633

Browse files
committed
Update to acorn 5.7.1.
This release supports binding-less CatchClause in the walker.
1 parent abdf082 commit e3d0633

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/browserify/acorn-node/issues"
88
},
99
"dependencies": {
10-
"acorn": "^5.6.2",
10+
"acorn": "^5.7.1",
1111
"acorn-dynamic-import": "^3.0.0",
1212
"xtend": "^4.0.1"
1313
},

walk.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ var xtend = require('xtend')
22
var walk = require('acorn/dist/walk')
33

44
var base = xtend(walk.base, {
5-
Import: function () {},
6-
// pending https://github.com/acornjs/acorn/pull/705
7-
CatchClause: function (node, st, c) {
8-
if (node.param) c(node.param, st, 'Pattern')
9-
c(node.body, st, 'ScopeBody')
10-
}
5+
Import: function () {}
116
})
127

138
function simple (node, visitors, baseVisitor, state, override) {

0 commit comments

Comments
 (0)