regenerator-transform
Advanced tools
Comparing version 0.13.2 to 0.13.3
@@ -896,2 +896,9 @@ "use strict"; | ||
case "AssignmentExpression": | ||
if (expr.operator === "=") { | ||
// If this is a simple assignment, the left hand side does not need | ||
// to be read before the right hand side is evaluated, so we can | ||
// avoid the more complicated logic below. | ||
return finish(t.assignmentExpression(expr.operator, self.explodeExpression(path.get("left")), self.explodeExpression(path.get("right")))); | ||
} | ||
var lhs = self.explodeExpression(path.get("left")); | ||
@@ -898,0 +905,0 @@ var temp = self.emitAssign(self.makeTempVar(), lhs); // For example, |
@@ -5,3 +5,3 @@ { | ||
"description": "Explode async and generator functions into a state machine.", | ||
"version": "0.13.2", | ||
"version": "0.13.3", | ||
"main": "lib/index.js", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
@@ -1172,2 +1172,13 @@ /** | ||
case "AssignmentExpression": | ||
if (expr.operator === "=") { | ||
// If this is a simple assignment, the left hand side does not need | ||
// to be read before the right hand side is evaluated, so we can | ||
// avoid the more complicated logic below. | ||
return finish(t.assignmentExpression( | ||
expr.operator, | ||
self.explodeExpression(path.get("left")), | ||
self.explodeExpression(path.get("right")) | ||
)); | ||
} | ||
const lhs = self.explodeExpression(path.get("left")); | ||
@@ -1174,0 +1185,0 @@ const temp = self.emitAssign(self.makeTempVar(), lhs); |
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
123857
3227