Skip to content

Commit f7aff73

Browse files
a-sivacommit-bot@chromium.org
authored andcommitted
Fix Isolate.packageRoot to account for the fact that it returns a Future.
Change-Id: If4b7c3a66aa3071beadf29a57ac84a8e2228ffb8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127341 Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Siva Annamalai <asiva@google.com>
1 parent 1ff20f1 commit f7aff73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/lib/_internal/vm/lib/isolate_patch.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class Isolate {
327327

328328
@patch
329329
static Future<Uri> get packageRoot {
330-
return null;
330+
return Future.value(null);
331331
}
332332

333333
@patch

sdk_nnbd/lib/_internal/vm/lib/isolate_patch.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class Isolate {
327327

328328
@patch
329329
static Future<Uri> get packageRoot {
330-
return null;
330+
return Future.value(null);
331331
}
332332

333333
@patch

0 commit comments

Comments
 (0)