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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/type_test_emitter.dart

Issue 237583014: JS templates (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: cleanup Created 6 years, 8 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_emitter/type_test_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/type_test_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/type_test_emitter.dart
index f1a67f0418f2023d60af6907a4576fe3c138e5dc..c2cb16be184f734ce89383a9af869eff74fd08e8 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/type_test_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/type_test_emitter.dart
@@ -64,7 +64,7 @@ class TypeTestEmitter extends CodeEmitterHelper {
closureData.freeVariableMapping[closureData.thisElement];
if (thisElement != null) {
String thisName = namer.instanceFieldPropertyName(thisElement);
- thisAccess = js('this')[js.string(thisName)];
+ thisAccess = js('this.#', thisName);
}
}
RuntimeTypes rti = backend.rti;

Powered by Google App Engine
This is Rietveld 408576698