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

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

Issue 426643002: Don't resolve 'package:*' and 'dart:*' Uris, in Platform:script. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/platform_impl.dart
diff --git a/sdk/lib/io/platform_impl.dart b/sdk/lib/io/platform_impl.dart
index 5970e5c710eb5c0043142981fb0b74e2433fbd08..0cffec6a532bd98f77549122771e11297bec48ff 100644
--- a/sdk/lib/io/platform_impl.dart
+++ b/sdk/lib/io/platform_impl.dart
@@ -31,6 +31,8 @@ class _Platform {
static void set _nativeScript(String path) {
if (path.startsWith('http:') ||
path.startsWith('https:') ||
+ path.startsWith('package:') ||
+ path.startsWith('dart:') ||
path.startsWith('file:')) {
script = Uri.parse(path);
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698