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

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

Issue 53313007: Change dart:io Platform.script to return a URI. Change all uses of Platform.script to work with th… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dom.py docs Created 7 years, 2 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.dart
diff --git a/sdk/lib/io/platform.dart b/sdk/lib/io/platform.dart
index 30a9a9f40bb00463707878476bbf53d374e87c13..16d0a1e65cacfb3f7bdcca04b1a04ca6ff7b078f 100644
--- a/sdk/lib/io/platform.dart
+++ b/sdk/lib/io/platform.dart
@@ -80,14 +80,14 @@ class Platform {
static String get executable => _Platform.executable;
/**
- * Returns the URI (in String form) of the script being run in this
+ * Returns the URI 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.
+ * URI is returned.
*/
- static String get script => _nativeScript;
+ static Uri get script => _Platform.script;
/**
* Returns the flags passed to the executable used to run the script in this

Powered by Google App Engine
This is Rietveld 408576698