fix predence of destructuring parameters - fixes #2269

This commit is contained in:
Sebastian McKenzie
2015-08-27 11:10:22 -07:00
parent 310de83b63
commit b8d53c1811
2 changed files with 9 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ export var visitor = {
t.inherits(ref, pattern);
var destructuring = new DestructuringTransformer({
blockHoist: node.params.length - i,
blockHoist: node.params.length - i + 1,
nodes: nodes,
scope: scope,
file: file,