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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
index ac5968b9029dec8f52907b1bb68105130b83fd70..497ee132758cd3943e4d1664f3ee1323e6342b33 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
@@ -76,13 +76,16 @@ $lazyInitializerLogic
return new js.NamedFunction(
new js.VariableDeclaration(mangledName),
new js.Fun(
- fieldNames.map((fieldName) => new js.Parameter(fieldName)),
+ fieldNames
+ .mappedBy((fieldName) => new js.Parameter(fieldName))
+ .toList(),
new js.Block(
- fieldNames.map((fieldName) =>
+ fieldNames.mappedBy((fieldName) =>
new js.ExpressionStatement(
new js.Assignment(
new js.This().dot(fieldName),
- new js.VariableUse(fieldName)))))));
+ new js.VariableUse(fieldName))))
+ .toList())));
}
void emitBoundClosureClassHeader(String mangledName,

Powered by Google App Engine
This is Rietveld 408576698