regenerator-transform
Advanced tools
Comparing version 0.14.0 to 0.14.1
@@ -141,3 +141,8 @@ /** | ||
outerBody.push(t.returnStatement(wrapCall)); | ||
node.body = t.blockStatement(outerBody); | ||
node.body = t.blockStatement(outerBody); // We injected a few new variable declarations (for every hoisted var), | ||
// so we need to add them to the scope. | ||
path.get("body.body").forEach(function (p) { | ||
return p.scope.registerDeclaration(p); | ||
}); | ||
var oldDirectives = bodyBlockPath.node.directives; | ||
@@ -144,0 +149,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Explode async and generator functions into a state machine.", | ||
"version": "0.14.0", | ||
"version": "0.14.1", | ||
"main": "lib/index.js", | ||
@@ -36,6 +36,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/cli": "^7.1.5", | ||
"@babel/core": "^7.1.6", | ||
"@babel/preset-env": "^7.1.6" | ||
"@babel/cli": "7.5.5", | ||
"@babel/core": "7.5.5", | ||
"@babel/preset-env": "7.5.5" | ||
} | ||
} |
@@ -159,2 +159,5 @@ /** | ||
node.body = t.blockStatement(outerBody); | ||
// We injected a few new variable declarations (for every hoisted var), | ||
// so we need to add them to the scope. | ||
path.get("body.body").forEach(p => p.scope.registerDeclaration(p)); | ||
@@ -161,0 +164,0 @@ const oldDirectives = bodyBlockPath.node.directives; |
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
127783
19
3302