babel-generator
Advanced tools
Comparing version 6.4.0 to 6.4.1
@@ -195,4 +195,3 @@ /* @flow */ | ||
// needs a paren except for `in` expressions: `for (a in b ? a : b;;)` | ||
// and for `ObjectPattern`: `({ f } = { f: 2 };` | ||
var parens = this._inForStatementInit && node.operator === "in" && !_node2["default"].needsParens(node, parent) || t.isObjectPattern(node.left); | ||
var parens = this._inForStatementInit && node.operator === "in" && !_node2["default"].needsParens(node, parent); | ||
@@ -199,0 +198,0 @@ if (parens) { |
@@ -91,3 +91,3 @@ /* @flow */ | ||
if (t.isBinary(parent) && !t.isAssignmentExpression(parent)) { | ||
if (t.isBinary(parent)) { | ||
var parentOp = parent.operator; | ||
@@ -236,3 +236,3 @@ var parentPos = PRECEDENCE[parentOp]; | ||
if (t.isBinary(parent) && !t.isAssignmentExpression(parent)) { | ||
if (t.isBinary(parent)) { | ||
return true; | ||
@@ -239,0 +239,0 @@ } |
{ | ||
"name": "babel-generator", | ||
"version": "6.4.0", | ||
"version": "6.4.1", | ||
"description": "Turns an AST into code.", | ||
@@ -16,3 +16,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"babel-runtime": "^5.0.0", | ||
"babel-types": "^6.4.0", | ||
"babel-types": "^6.4.1", | ||
"detect-indent": "^3.0.1", | ||
@@ -19,0 +19,0 @@ "is-integer": "^1.0.4", |
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
94502
22
2908
Updatedbabel-types@^6.4.1