shift-codegen
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -565,2 +565,3 @@ "use strict"; | ||
} | ||
var containsIn = false; | ||
if (node.body.type === "FunctionBody") { | ||
@@ -570,4 +571,6 @@ body = brace(body); | ||
body = paren(body); | ||
} else if (body.containsIn) { | ||
containsIn = true; | ||
} | ||
return seq(params, t("=>"), p(node.body, _coderep.Precedence.Assignment, body)); | ||
return (0, _objectAssign2.default)(seq(params, t("=>"), p(node.body, _coderep.Precedence.Assignment, body)), { containsIn: containsIn }); | ||
} | ||
@@ -574,0 +577,0 @@ }, { |
{ | ||
"name": "shift-codegen", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "code generator for Shift format ASTs", | ||
@@ -5,0 +5,0 @@ "author": "Shape Security Labs", |
Sorry, the diff of this file is too big to display
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
2953
146391
7
1
0