temporarily disable own binding identification in nameMethod helper - fixes #871

This commit is contained in:
Sebastian McKenzie 2015-02-25 11:07:51 +11:00
parent 00651e671e
commit 2bab285970
2 changed files with 2 additions and 12 deletions

View File

@ -47,7 +47,7 @@ var visit = function (node, name, scope) {
// check to see if we have a local binding of the id we're setting inside of // 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 // the function, this is important as there are caveats associated
var bindingInfo = scope.getOwnBindingInfo(name); var bindingInfo = null; // todo: proper scope not being passed in es6/classes // scope.getOwnBindingInfo(name);
if (bindingInfo) { if (bindingInfo) {
if (bindingInfo.kind === "param") { if (bindingInfo.kind === "param") {

View File

@ -55,17 +55,7 @@ var g = function g() {
}; };
// param with the same name as id // param with the same name as id
var h = (function (_h) { var h = function h(h) {};
var _hWrapper = function h() {
return _h.apply(this, arguments);
};
_hWrapper.toString = function () {
return _h.toString();
};
return _hWrapper;
})(function (h) {});
// assignment to self // assignment to self
var i = (function (_i) { var i = (function (_i) {