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

Unified Diff: sdk/lib/_internal/lib/js_helper.dart

Issue 253753002: Correctly minify magic [call] property of [Closure]. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/js_helper.dart
diff --git a/sdk/lib/_internal/lib/js_helper.dart b/sdk/lib/_internal/lib/js_helper.dart
index 4bd23f166cfa50cecf1cc27f7b6630233c5fdd40..bf48b2a860515455327bacd5e859c5ca8b8c38d3 100644
--- a/sdk/lib/_internal/lib/js_helper.dart
+++ b/sdk/lib/_internal/lib/js_helper.dart
@@ -2261,12 +2261,13 @@ abstract class Closure implements Function {
'}');
}
- // Note that the backend adds the below special getter to allow for tearing
- // off a closure from itself. We do this magically in the backend, as we do
- // not want this getter to be visisble to resolution and the generation of
- // extra stubs.
+ // The backend adds a special getter of the form
//
// Closure get call => this;
+ //
+ // to allow tearing off a closure from itself. We do this magically in the
+ // backend rather than simply adding it here, as we do not want this getter
+ // to be visible to resolution and the generation of extra stubs.
String toString() => "Closure";
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698