Index: sdk/lib/_internal/js_runtime/lib/isolate_patch.dart |
diff --git a/sdk/lib/_internal/js_runtime/lib/isolate_patch.dart b/sdk/lib/_internal/js_runtime/lib/isolate_patch.dart |
index 8bd8d1a4f5a352a9513fb3a75999ce22014e3a33..7418a7db8c54f6469d2b6c9e878ddc40aa991d3a 100644 |
--- a/sdk/lib/_internal/js_runtime/lib/isolate_patch.dart |
+++ b/sdk/lib/_internal/js_runtime/lib/isolate_patch.dart |
@@ -32,9 +32,12 @@ class Isolate { |
static Uri _packageBase = Uri.base.resolve(IsolateNatives.packagesBase); |
@patch |
- static Future<Uri> resolvePackageUri(Uri packageUri) async { |
- if (packageUri.scheme != 'package') return packageUri; |
- return _packageBase.resolveUri(packageUri.replace(scheme: '')); |
+ static Future<Uri> resolvePackageUri(Uri packageUri) { |
+ if (packageUri.scheme != 'package') { |
+ return new Future<Uri>.value(packageUri); |
+ } |
+ return new Future<Uri>.value( |
+ _packageBase.resolveUri(packageUri.replace(scheme: ''))); |
} |
@patch |