Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Unified Diff: lib/src/js/template.dart

Issue 1243503007: fixes #221, initial sync*, async, async* implementation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/js/printer.dart ('k') | test/browser/dom.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « lib/src/js/printer.dart ('k') | test/browser/dom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698