summaryrefslogtreecommitdiff
path: root/node_modules/@babel/traverse/lib/path/removal.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
commitf06956efd2dc4bf77244a9fcce2b883a00b925af (patch)
tree0123cb73ce67f1f4b17e1d6cbabff076ee44e31b /node_modules/@babel/traverse/lib/path/removal.js
parent8d980c13970c15b6d2312b6fc4ac51698dd0d220 (diff)
updated node modules
Diffstat (limited to 'node_modules/@babel/traverse/lib/path/removal.js')
-rw-r--r--node_modules/@babel/traverse/lib/path/removal.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/node_modules/@babel/traverse/lib/path/removal.js b/node_modules/@babel/traverse/lib/path/removal.js
index 220cdc94..7b1ce871 100644
--- a/node_modules/@babel/traverse/lib/path/removal.js
+++ b/node_modules/@babel/traverse/lib/path/removal.js
@@ -12,6 +12,10 @@ exports.remove = remove;
var _removalHooks = require("./lib/removal-hooks.js");
var _cache = require("../cache.js");
var _index = require("./index.js");
+var _t = require("@babel/types");
+const {
+ getBindingIdentifiers
+} = _t;
function remove() {
var _this$opts;
this._assertUnremoved();
@@ -28,7 +32,7 @@ function remove() {
this._markRemoved();
}
function _removeFromScope() {
- const bindings = this.getBindingIdentifiers();
+ const bindings = getBindingIdentifiers(this.node, false, false, true);
Object.keys(bindings).forEach(name => this.scope.removeBinding(name));
}
function _callRemovalHooks() {