temporarily disable own binding identification in nameMethod helper - fixes #871
This commit is contained in:
parent
00651e671e
commit
2bab285970
@ -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
|
||||
// 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.kind === "param") {
|
||||
|
||||
@ -55,17 +55,7 @@ var g = function g() {
|
||||
};
|
||||
|
||||
// param with the same name as id
|
||||
var h = (function (_h) {
|
||||
var _hWrapper = function h() {
|
||||
return _h.apply(this, arguments);
|
||||
};
|
||||
|
||||
_hWrapper.toString = function () {
|
||||
return _h.toString();
|
||||
};
|
||||
|
||||
return _hWrapper;
|
||||
})(function (h) {});
|
||||
var h = function h(h) {};
|
||||
|
||||
// assignment to self
|
||||
var i = (function (_i) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user