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

Unified Diff: sdk/lib/_internal/js_runtime/lib/io_patch.dart

Issue 1334353002: - Add getters for the current packageRoot or packageMap. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Updated documentation comment. Created 5 years, 3 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/_internal/js_runtime/lib/io_patch.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/io_patch.dart b/sdk/lib/_internal/js_runtime/lib/io_patch.dart
index 23f4708da2ff1947ca20b0d23ed5c40705ac5efb..7a8445a57ad7b88913eef3e64995a17fc41bf43d 100644
--- a/sdk/lib/_internal/js_runtime/lib/io_patch.dart
+++ b/sdk/lib/_internal/js_runtime/lib/io_patch.dart
@@ -229,8 +229,12 @@ class _Platform {
throw new UnsupportedError("Platform._executableArguments");
}
@patch
- static String _packageRoot() {
- throw new UnsupportedError("Platform._packageRoot");
+ static Future<Uri> get packageRoot {
+ throw new UnsupportedError("Platform.packageRoot");
+ }
+ @patch
+ static Future<Map<String, Uri>> get packageMap {
+ throw new UnsupportedError("Platform.packageMap");
}
@patch
static _environment() {

Powered by Google App Engine
This is Rietveld 408576698