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 9c7b19d2173ff9fa4f679eda9747b65d3369c595..0711b7d790a648f5ef84e533ca4339127e5a6fb5 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); |
- JS("void", r"# = $supportsWorkers", supportsWorkers); |
- JS("void", r"# = typeof(window) == 'undefined'", fromCommandLine); |
+ JS("void", r"#.isWorker = $isWorker", this); |
+ JS("void", r"#.supportsWorkers = $supportsWorkers", this); |
+ JS("void", r"#.fromCommandLine = typeof(window) == 'undefined'", this); |
} |
void _nativeInitWorkerMessageHandler() { |