Skip to content

Commit

Permalink
Manual roll of Dart with fixups to zircon system.dart (#44185)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-siva authored Jul 31, 2023
1 parent 8fea19c commit 2aca6c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ci/licenses_golden/licenses_dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Signature: eca8a55f4f8e1225df85bb269749e68c
Signature: a4dee66e7471aa133d109697527a267d

====================================================================================================
LIBRARY: dart
Expand Down
6 changes: 4 additions & 2 deletions shell/platform/fuchsia/dart-pkg/zircon/lib/src/system.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2aca6c0

Please sign in to comment.