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

Unified Diff: sdk/lib/_internal/js_runtime/lib/internal_patch.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/js_runtime/lib/internal_patch.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/internal_patch.dart b/sdk/lib/_internal/js_runtime/lib/internal_patch.dart
index a0c519f89911b2dc39b6f7c479a96888dd8b8529..8fc8acfc33678946174901fac8f8fdac68c669fb 100644
--- a/sdk/lib/_internal/js_runtime/lib/internal_patch.dart
+++ b/sdk/lib/_internal/js_runtime/lib/internal_patch.dart
@@ -22,6 +22,9 @@ class Symbol implements core.Symbol {
JS('', '#._hashCode = #', this, hash);
return hash;
}
+
+ @patch
+ toString() => 'Symbol("$_name")';
}
@patch

Powered by Google App Engine
This is Rietveld 408576698