regenerator-transform
Advanced tools
Comparing version 0.12.3 to 0.12.4
@@ -990,4 +990,6 @@ "use strict"; | ||
self.emit(t.returnStatement(t.callExpression(self.contextProperty("delegateYield"), [arg, t.stringLiteral(_result.property.name), after]))); | ||
var _ret = t.returnStatement(t.callExpression(self.contextProperty("delegateYield"), [arg, t.stringLiteral(_result.property.name), after])); | ||
_ret.loc = expr.loc; | ||
self.emit(_ret); | ||
self.mark(after); | ||
@@ -999,3 +1001,8 @@ | ||
self.emitAssign(self.contextProperty("next"), after); | ||
self.emit(t.returnStatement(arg || null)); | ||
var ret = t.returnStatement(arg || null); | ||
// Preserve the `yield` location so that source mappings for the statements | ||
// link back to the yield properly. | ||
ret.loc = expr.loc; | ||
self.emit(ret); | ||
self.mark(after); | ||
@@ -1002,0 +1009,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Explode async and generator functions into a state machine.", | ||
"version": "0.12.3", | ||
"version": "0.12.4", | ||
"main": "lib/index.js", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
@@ -1175,4 +1175,5 @@ /** | ||
self.emit(t.returnStatement(t.callExpression( | ||
self.contextProperty("delegateYield"), [ | ||
let ret = t.returnStatement(t.callExpression( | ||
self.contextProperty("delegateYield"), | ||
[ | ||
arg, | ||
@@ -1182,4 +1183,6 @@ t.stringLiteral(result.property.name), | ||
] | ||
))); | ||
)); | ||
ret.loc = expr.loc; | ||
self.emit(ret); | ||
self.mark(after); | ||
@@ -1191,3 +1194,8 @@ | ||
self.emitAssign(self.contextProperty("next"), after); | ||
self.emit(t.returnStatement(arg || null)); | ||
let ret = t.returnStatement(arg || null); | ||
// Preserve the `yield` location so that source mappings for the statements | ||
// link back to the yield properly. | ||
ret.loc = expr.loc; | ||
self.emit(ret); | ||
self.mark(after); | ||
@@ -1194,0 +1202,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
129499
3193