Index: lib/src/js/template.dart |
diff --git a/lib/src/js/template.dart b/lib/src/js/template.dart |
index 9d75530162f538078ca0ba1b19c2634aa8e9a011..d376c45e136b54ebc58c77366bdb90a63b931d72 100644 |
--- a/lib/src/js/template.dart |
+++ b/lib/src/js/template.dart |
@@ -643,7 +643,8 @@ class InstantiatorGeneratorVisitor implements NodeVisitor<Instantiator> { |
(args) => new Spread(visit(node.argument)(args)); |
Instantiator visitYield(Yield node) => |
- (args) => new Yield(visit(node.value)(args), star: node.star); |
+ (args) => new Yield( |
+ node.value != null ? visit(node.value)(args) : null, star: node.star); |
Instantiator visitRestParameter(RestParameter node) => |
(args) => new RestParameter(visit(node.parameter)(args)); |