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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart

Issue 11364213: Rename classes, methods and fields when minifying (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/compiler/implementation/lib/isolate_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
index 1c9d772602105508712e858586a4653910b4946b..1d50aa469d0cb44e0e619c08d0c60534857c0c72 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
@@ -188,9 +188,9 @@ class _Manager {
}
void _nativeDetectEnvironment() {
- JS("void", r"#.isWorker = $isWorker", this);
- JS("void", r"#.supportsWorkers = $supportsWorkers", this);
- JS("void", r"#.fromCommandLine = typeof(window) == 'undefined'", this);
+ JS("void", r"# = $isWorker", isWorker);
+ JS("void", r"# = $supportsWorkers", supportsWorkers);
+ JS("void", r"# = typeof(window) == 'undefined'", fromCommandLine);
}
void _nativeInitWorkerMessageHandler() {

Powered by Google App Engine
This is Rietveld 408576698