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 { |