lib/condenser/processors/node_modules/@babel/traverse/lib/path/removal.js in condenser-0.0.4 vs lib/condenser/processors/node_modules/@babel/traverse/lib/path/removal.js in condenser-0.0.5
- old
+ new
@@ -31,22 +31,15 @@
this._markRemoved();
}
function _removeFromScope() {
- var _this = this;
-
- var bindings = this.getBindingIdentifiers();
- Object.keys(bindings).forEach(function (name) {
- return _this.scope.removeBinding(name);
- });
+ const bindings = this.getBindingIdentifiers();
+ Object.keys(bindings).forEach(name => this.scope.removeBinding(name));
}
function _callRemovalHooks() {
- var _arr = _removalHooks.hooks;
-
- for (var _i = 0; _i < _arr.length; _i++) {
- var fn = _arr[_i];
+ for (const fn of _removalHooks.hooks) {
if (fn(this, this.parentPath)) return true;
}
}
function _remove() {
\ No newline at end of file