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

Unified Diff: sdk/lib/internal/symbol.dart

Issue 2564383002: Make some VM libraries patch cleanly using the analyzer. (Closed)
Patch Set: Created 4 years 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/symbol.dart
diff --git a/sdk/lib/internal/symbol.dart b/sdk/lib/internal/symbol.dart
index 64fcdb389118bfa0585010508800802e89da92c5..73e702377d19b3de16de0c48da5f961a6806b9c2 100644
--- a/sdk/lib/internal/symbol.dart
+++ b/sdk/lib/internal/symbol.dart
@@ -114,7 +114,7 @@ class Symbol implements core.Symbol {
external int get hashCode;
- toString() => 'Symbol("$_name")';
+ external toString();
hausner 2016/12/14 23:35:40 Why is it necessary to patch toString()? Isn't the
Siggi Cherem (dart-lang) 2016/12/15 00:31:46 It seems like the vm was patching it with some ext
Lasse Reichstein Nielsen 2016/12/15 07:55:41 That's http://dartbug.com/13596 - the VM isn't val
/// Platform-private accessor which cannot be called from user libraries.
static String getName(Symbol symbol) => symbol._name;

Powered by Google App Engine
This is Rietveld 408576698