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

Unified Diff: pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart

Issue 2700053003: Don't use magic strings/properties to communicate between compiler and runtime. (Closed)
Patch Set: Small cleanup. Created 3 years, 10 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: pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart b/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart
index 4afc814d6f1892fba033b81142fcdf84ea4b7c3b..0791151512263285c91a821f47d08bb802715f8a 100644
--- a/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart
@@ -354,7 +354,7 @@ class RuntimeTypeGenerator {
Substitution substitution =
backend.rti.getSubstitution(cls, element.typeDeclaration);
- jsAst.Name rtiFieldName = backend.namer.rtiFieldName;
+ jsAst.Name rtiFieldName = backend.namer.rtiFieldJsName;
if (substitution != null) {
computeTypeVariable = js(r'#.apply(null, this.#)', [
backend.rtiEncoder.getSubstitutionCodeForVariable(substitution, index),

Powered by Google App Engine
This is Rietveld 408576698