babel-plugin-transform-es2015-parameters
Advanced tools
Comparing version 7.0.0-alpha.9 to 7.0.0-alpha.10
@@ -91,3 +91,2 @@ "use strict"; | ||
var argsIdentifier = t.identifier("arguments"); | ||
argsIdentifier._shadowedFunctionLiteral = path; | ||
@@ -94,0 +93,0 @@ function pushDefNode(left, right, i) { |
@@ -9,2 +9,4 @@ "use strict"; | ||
ArrowFunctionExpression: function ArrowFunctionExpression(path) { | ||
if (!path.isArrowFunctionExpression()) return; | ||
var params = path.get("params"); | ||
@@ -26,3 +28,3 @@ for (var _iterator = params, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { | ||
if (param.isRestElement() || param.isAssignmentPattern()) { | ||
path.arrowFunctionToShadowed(); | ||
path.arrowFunctionToExpression(); | ||
break; | ||
@@ -29,0 +31,0 @@ } |
@@ -158,4 +158,2 @@ "use strict"; | ||
argsId._shadowedFunctionLiteral = path; | ||
var state = { | ||
@@ -213,4 +211,2 @@ references: [], | ||
state.deopted = state.deopted || !!node.shadow; | ||
var start = t.numericLiteral(node.params.length); | ||
@@ -217,0 +213,0 @@ var key = scope.generateUidIdentifier("key"); |
{ | ||
"name": "babel-plugin-transform-es2015-parameters", | ||
"version": "7.0.0-alpha.9", | ||
"version": "7.0.0-alpha.10", | ||
"description": "Compile ES2015 default and rest parameters to ES5", | ||
@@ -9,7 +9,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-parameters", | ||
"dependencies": { | ||
"babel-traverse": "7.0.0-alpha.9", | ||
"babel-helper-call-delegate": "7.0.0-alpha.9", | ||
"babel-helper-get-function-arity": "7.0.0-alpha.9", | ||
"babel-template": "7.0.0-alpha.9", | ||
"babel-types": "7.0.0-alpha.9" | ||
"babel-traverse": "7.0.0-alpha.10", | ||
"babel-helper-call-delegate": "7.0.0-alpha.10", | ||
"babel-helper-get-function-arity": "7.0.0-alpha.10", | ||
"babel-template": "7.0.0-alpha.10", | ||
"babel-types": "7.0.0-alpha.10" | ||
}, | ||
@@ -20,4 +20,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.9" | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.10" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16817
369
+ Addedbabel-helper-call-delegate@7.0.0-alpha.10(transitive)
+ Addedbabel-helper-function-name@7.0.0-alpha.7(transitive)
+ Addedbabel-helper-get-function-arity@7.0.0-alpha.10(transitive)
+ Addedbabel-helper-hoist-variables@7.0.0-alpha.10(transitive)
+ Addedbabel-messages@7.0.0-alpha.10(transitive)
+ Addedbabel-template@7.0.0-alpha.10(transitive)
+ Addedbabel-traverse@7.0.0-alpha.10(transitive)
+ Addedbabel-types@7.0.0-alpha.10(transitive)
+ Addedbabylon@7.0.0-beta.10(transitive)
- Removedbabel-helper-call-delegate@7.0.0-alpha.9(transitive)
- Removedbabel-helper-get-function-arity@7.0.0-alpha.9(transitive)
- Removedbabel-helper-hoist-variables@7.0.0-alpha.9(transitive)
- Removedbabel-messages@7.0.0-alpha.9(transitive)
- Removedbabel-template@7.0.0-alpha.9(transitive)
- Removedbabel-traverse@7.0.0-alpha.9(transitive)
- Removedbabel-types@7.0.0-alpha.9(transitive)
- Removedbabylon@7.0.0-beta.8(transitive)
Updatedbabel-types@7.0.0-alpha.10