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

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

Issue 22565003: Make the values of Platform.executable and Platform.script available to all isolates (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from whesse@ Created 7 years, 4 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/io_patch.dart ('k') | sdk/lib/io/platform_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/platform.dart
diff --git a/sdk/lib/io/platform.dart b/sdk/lib/io/platform.dart
index 90fe65a2dd62b55c0b45d62529346da304cbd2dc..16b3595c35de90943ce041437f0baef93857c954 100644
--- a/sdk/lib/io/platform.dart
+++ b/sdk/lib/io/platform.dart
@@ -15,9 +15,6 @@ class Platform {
static final _localHostname = _Platform.localHostname;
static final _version = _Platform.version;
- // This executable singleton is written to by the embedder if applicable.
- static String _nativeExecutable = '';
-
// This script singleton is written to by the embedder if applicable.
static String _nativeScript = '';
@@ -80,10 +77,12 @@ class Platform {
* If the execution environment does not support [executable] an empty
* string is returned.
*/
- static String get executable => _nativeExecutable;
+ static String get executable => _Platform.executable;
/**
- * Returns the path of the script being run in this isolate.
+ * Returns the URI (in String form) of the script being run in this
+ * isolate. If the URI is relative it is relative to the file URI of
+ * the working directory of the VM when it was started.
*
* If the executable environment does not support [script] an empty
* string is returned.
« no previous file with comments | « sdk/lib/_internal/lib/io_patch.dart ('k') | sdk/lib/io/platform_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698