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

Unified Diff: sdk/lib/io/platform_impl.dart

Issue 2988613002: Compute the script Uri lazily (Closed)
Patch Set: Created 3 years, 5 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
Index: sdk/lib/io/platform_impl.dart
diff --git a/sdk/lib/io/platform_impl.dart b/sdk/lib/io/platform_impl.dart
index e5de17d02e52d6d18fe867ad5b0ac19a0c035c63..2eddc6da20cd883d0817bc22d808879ac339851b 100644
--- a/sdk/lib/io/platform_impl.dart
+++ b/sdk/lib/io/platform_impl.dart
@@ -33,6 +33,7 @@ class _Platform {
external static String _packageConfig();
external static String _version();
external static String _localeName();
+ external static Uri _script();
static String executable = _executable();
static String resolvedExecutable = _resolvedExecutable();
@@ -58,7 +59,7 @@ class _Platform {
static int get numberOfProcessors => _numberOfProcessors();
static String get pathSeparator => _pathSeparator();
static String get operatingSystem => _operatingSystem();
- static Uri script;
+ static Uri get script => _script();
static String get localHostname {
var result = _localHostname();
« runtime/bin/platform_patch.dart ('K') | « sdk/lib/_internal/js_runtime/lib/io_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698