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 ed72e6c09fa64493de08b5803cab910249f3cedf..637943b44eacd224c3784d107741c8f1911621fe 100644 |
--- a/sdk/lib/_internal/js_runtime/lib/isolate_patch.dart |
+++ b/sdk/lib/_internal/js_runtime/lib/isolate_patch.dart |
@@ -31,9 +31,12 @@ class Isolate { |
throw new UnsupportedError("Isolate.packageConfig"); |
} |
+ static Uri _packageBase = Uri.base.resolve(IsolateNatives.packagesBase); |
+ |
@patch |
- static Future<Uri> resolvePackageUri(Uri packageUri) { |
- throw new UnsupportedError("Isolate.resolvePackageUri"); |
+ static Future<Uri> resolvePackageUri(Uri packageUri) async { |
+ if (packageUri.scheme != 'package') return packageUri; |
+ return _packageBase.resolveUri(packageUri.replace(scheme: '')); |
} |
@patch |