From 13773e3c02b8135d90a2a27c436b1fdfe9f3e775 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 15 Sep 2015 06:27:19 +0100 Subject: [PATCH] change traversal visitor method signature from (node, parent, scope, state) to (path, state) --- packages/babel-traverse/src/path/context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-traverse/src/path/context.js b/packages/babel-traverse/src/path/context.js index 17606a0def..df2b48bd66 100644 --- a/packages/babel-traverse/src/path/context.js +++ b/packages/babel-traverse/src/path/context.js @@ -20,7 +20,7 @@ export function call(key) { var previousType = this.type; // call the function with the params (node, parent, scope, state) - var replacement = fn.call(this, node, this.parent, this.scope, this.state); + var replacement = fn.call(this, this, this.state); if (replacement) { this.replaceWith(replacement, true);