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

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

Issue 2690583003: Fix for https://github.com/dart-lang/sdk/issues/28727 (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart b/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
index 56ef69ee3adaa819b0dd0ba79baf057d9c6bae04..1388ba868ad1e9b1d7749d6e56d7edd3d70c439a 100644
--- a/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
@@ -40,9 +40,8 @@ class ClassStubGenerator {
var typeParameters = const <jsAst.Parameter>[];
var typeInits = const <jsAst.Expression>[];
if (hasRtiField) {
- String parameterName = r'$ti';
- typeParameters = parameterName;
- typeInits = js('this.# = #', [namer.rtiFieldName, parameterName]);
+ typeParameters = namer.rtiFieldName;
+ typeInits = js('this.# = #', [namer.rtiFieldName, namer.rtiFieldName]);
}
return js('function(#, #) { #; #; this.#();}', [
fields,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698