aboutsummaryrefslogtreecommitdiff
path: root/node_modules/babel-traverse/lib/path/modification.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/babel-traverse/lib/path/modification.js')
-rw-r--r--node_modules/babel-traverse/lib/path/modification.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/babel-traverse/lib/path/modification.js b/node_modules/babel-traverse/lib/path/modification.js
index 9c8c7d3e5..a763f6d7b 100644
--- a/node_modules/babel-traverse/lib/path/modification.js
+++ b/node_modules/babel-traverse/lib/path/modification.js
@@ -257,7 +257,7 @@ function pushContainer(listKey, nodes) {
}
function hoist() {
- var scope = arguments.length <= 0 || arguments[0] === undefined ? this.scope : arguments[0];
+ var scope = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.scope;
var hoister = new _hoister2.default(this, scope);
return hoister.run();