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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/codegen.dart

Issue 759193005: Add support for fields to the new dart backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dart2js-cps Created 6 years, 1 month 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: pkg/compiler/lib/src/js_backend/codegen/codegen.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
index 1eb0c335da60e8462b3e20fdedee90275718a7ab..44bad9f0f7857ad96166bd94916a78559c736cb2 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
@@ -96,7 +96,7 @@ class CodeGenerator extends tree_ir.Visitor<dynamic, js.Expression> {
String getVariableName(tree_ir.Variable variable) {
// TODO(sigurdm): Handle case where the variable belongs to an enclosing
// function.
- if (variable.host.element != currentFunction) giveup(variable);
+ if (variable.host != currentFunction) giveup(variable);
// Get the name if we already have one.
String name = variableNames[variable];

Powered by Google App Engine
This is Rietveld 408576698