regenerator-transform
Advanced tools
Comparing version 0.14.3 to 0.14.4
@@ -104,6 +104,3 @@ /** | ||
vars = vars || t.variableDeclaration("var", []); | ||
var argumentIdentifier = t.identifier("arguments"); // we need to do this as otherwise arguments in arrow functions gets hoisted | ||
argumentIdentifier._shadowedFunctionLiteral = path; | ||
vars.declarations.push(t.variableDeclarator(t.clone(argsId), argumentIdentifier)); | ||
vars.declarations.push(t.variableDeclarator(t.clone(argsId), t.identifier("arguments"))); | ||
} | ||
@@ -110,0 +107,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Explode async and generator functions into a state machine.", | ||
"version": "0.14.3", | ||
"version": "0.14.4", | ||
"main": "lib/index.js", | ||
@@ -20,3 +20,3 @@ "keywords": [ | ||
"scripts": { | ||
"prepublish": "babel src/ --out-dir lib/" | ||
"prepublish": "npx babel src/ --out-dir lib/" | ||
}, | ||
@@ -23,0 +23,0 @@ "babel": { |
@@ -117,7 +117,5 @@ /** | ||
vars = vars || t.variableDeclaration("var", []); | ||
const argumentIdentifier = t.identifier("arguments"); | ||
// we need to do this as otherwise arguments in arrow functions gets hoisted | ||
argumentIdentifier._shadowedFunctionLiteral = path; | ||
vars.declarations.push(t.variableDeclarator( | ||
t.clone(argsId), argumentIdentifier | ||
t.clone(argsId), | ||
t.identifier("arguments"), | ||
)); | ||
@@ -124,0 +122,0 @@ } |
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
127493
3332