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

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

Issue 236313012: Don't hide interceptors in mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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/lib/js_mirrors.dart ('k') | sdk/lib/_internal/lib/js_number.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/js_names.dart
diff --git a/sdk/lib/_internal/lib/js_names.dart b/sdk/lib/_internal/lib/js_names.dart
index 6aa3632cb49106d613b84e335a8da4d331291510..387265e5d6b38e7cb7395a48391e949e3f97a694 100644
--- a/sdk/lib/_internal/lib/js_names.dart
+++ b/sdk/lib/_internal/lib/js_names.dart
@@ -97,3 +97,10 @@ String unmangleGlobalNameIfPreservedAnyways(String name) {
var names = JS('=Object', 'init.mangledGlobalNames');
return JsCache.fetch(names, name);
}
+
+String unmangleAllIdentifiersIfPreservedAnyways(String str) {
+ return JS("String",
+ r"(#).replace(/[^<,> ]+/g,"
+ r"function(m) { return init.mangledGlobalNames[m] || m; })",
+ str);
+}
« no previous file with comments | « sdk/lib/_internal/lib/js_mirrors.dart ('k') | sdk/lib/_internal/lib/js_number.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698