From 4f13581147e6b1233e771df497cee3cd07a02dc2 Mon Sep 17 00:00:00 2001 From: Siva Date: Mon, 31 Jul 2023 16:03:14 -0700 Subject: [PATCH] Manual roll of Dart with fixups to zircon system.dart (flutter/engine#44185) https://dart.googlesource.com/sdk.git/+log/4fd35600b477..0e02245635ea Merge to Dart Version 3.2.0-16.0.dev --- DEPS | 2 +- engine/src/flutter/ci/licenses_golden/licenses_dart | 2 +- .../platform/fuchsia/dart-pkg/zircon/lib/src/system.dart | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/DEPS b/DEPS index a127296baa..ccd4432687 100644 --- a/DEPS +++ b/DEPS @@ -53,7 +53,7 @@ vars = { # Dart is: https://github.com/dart-lang/sdk/blob/main/DEPS # You can use //tools/dart/create_updated_flutter_deps.py to produce # updated revision list of existing dependencies. - 'dart_revision': '4fd35600b477d18b024fa1b31f42204fab2fccd0', + 'dart_revision': '0e02245635eaf23fa5d6a62b059a90aae34fffe0', # WARNING: DO NOT EDIT MANUALLY # The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py diff --git a/engine/src/flutter/ci/licenses_golden/licenses_dart b/engine/src/flutter/ci/licenses_golden/licenses_dart index 3c37e1e141..7d79dba5ed 100644 --- a/engine/src/flutter/ci/licenses_golden/licenses_dart +++ b/engine/src/flutter/ci/licenses_golden/licenses_dart @@ -1,4 +1,4 @@ -Signature: eca8a55f4f8e1225df85bb269749e68c +Signature: a4dee66e7471aa133d109697527a267d ==================================================================================================== LIBRARY: dart diff --git a/engine/src/flutter/shell/platform/fuchsia/dart-pkg/zircon/lib/src/system.dart b/engine/src/flutter/shell/platform/fuchsia/dart-pkg/zircon/lib/src/system.dart index 34e7f08c2d..9f6cec0b02 100644 --- a/engine/src/flutter/shell/platform/fuchsia/dart-pkg/zircon/lib/src/system.dart +++ b/engine/src/flutter/shell/platform/fuchsia/dart-pkg/zircon/lib/src/system.dart @@ -86,7 +86,8 @@ class ReadResult extends _Result { /// Returns the bytes as a Uint8List. If status != OK this will throw /// an exception. Uint8List bytesAsUint8List() { - return _bytes!.buffer.asUint8List(_bytes!.offsetInBytes, _numBytes!); + final lbytes = bytes; + return lbytes.buffer.asUint8List(lbytes.offsetInBytes, _numBytes!); } /// Returns the bytes as a String. If status != OK this will throw @@ -129,7 +130,8 @@ class ReadEtcResult extends _Result { /// Returns the bytes as a Uint8List. If status != OK this will throw /// an exception. Uint8List bytesAsUint8List() { - return _bytes!.buffer.asUint8List(_bytes!.offsetInBytes, _numBytes!); + final lbytes = bytes; + return lbytes.buffer.asUint8List(lbytes.offsetInBytes, _numBytes!); } /// Returns the bytes as a String. If status != OK this will throw