diff --git a/src/babel/transformation/helpers/name-method.js b/src/babel/transformation/helpers/name-method.js index d7f8d3b6f1..a94e21e806 100644 --- a/src/babel/transformation/helpers/name-method.js +++ b/src/babel/transformation/helpers/name-method.js @@ -55,7 +55,7 @@ var visit = function (node, name, scope) { // check to see if we have a local binding of the id we're setting inside of // the function, this is important as there are caveats associated - var bindingInfo = null; // todo: proper scope not being passed in es6/classes // scope.getOwnBindingInfo(name); + var bindingInfo = scope.getOwnBindingInfo(name); if (bindingInfo) { if (bindingInfo.kind === "param") {