mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:17:55 +00:00
[VM] Fix signature of function to match non nullability signature.
Change-Id: If0f34f3a3ceb1fa08de5fdbd7d5c9a3f676b1333 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/145701 Reviewed-by: Siva Annamalai <asiva@google.com> Commit-Queue: Siva Annamalai <asiva@google.com>
This commit is contained in:
parent
eaf46c9ccf
commit
ff6724285c
|
@ -713,7 +713,7 @@ _setupHooks() {
|
|||
VMLibraryHooks.resolvePackageUriFuture = _resolvePackageUriFuture;
|
||||
}
|
||||
|
||||
Future<Uri> _getPackageConfigFuture() {
|
||||
Future<Uri?> _getPackageConfigFuture() {
|
||||
if (_traceLoading) {
|
||||
_log("Request for package config from user code.");
|
||||
}
|
||||
|
|
|
@ -319,12 +319,12 @@ class Isolate {
|
|||
String get debugName => _getDebugName(controlPort);
|
||||
|
||||
@patch
|
||||
static Future<Uri> get packageRoot {
|
||||
static Future<Uri?> get packageRoot {
|
||||
return Future.value(null);
|
||||
}
|
||||
|
||||
@patch
|
||||
static Future<Uri> get packageConfig {
|
||||
static Future<Uri?> get packageConfig {
|
||||
var hook = VMLibraryHooks.packageConfigUriFuture;
|
||||
if (hook == null) {
|
||||
throw new UnsupportedError("Isolate.packageConfig");
|
||||
|
|
Loading…
Reference in a new issue