aboutsummaryrefslogtreecommitdiff
path: root/node_modules/babel-traverse/lib/path/modification.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
commitd1291f67551c58168af43698a359cb5ddfd266b0 (patch)
tree55a13ed29fe1915e3f42f1b1b7038dafa2e975a7 /node_modules/babel-traverse/lib/path/modification.js
parentd0a0695fb5d34996850723f7d4b1b59c3df909c2 (diff)
node_modules
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();