Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Remove extends JSTypedArray from JSUint8Array1 #44175

Merged
merged 1 commit into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/web_ui/lib/src/engine/canvaskit/image.dart
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Future<Uint8List> readChunked(HttpFetchPayload payload, int contentLength, WebOn
final JSUint8Array result = createUint8ArrayFromLength(contentLength);
int position = 0;
int cumulativeBytesLoaded = 0;
await payload.read<JSUint8Array1>((JSUint8Array1 chunk) {
await payload.read<JSUint8Array>((JSUint8Array chunk) {
cumulativeBytesLoaded += chunk.length.toDartInt;
chunkCallback(cumulativeBytesLoaded, contentLength);
result.set(chunk, position.toJS);
Expand Down
2 changes: 1 addition & 1 deletion lib/web_ui/lib/src/engine/js_interop/js_typed_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extension TypedArrayExtension on JSTypedArray {
// the dart sdk yet
@JS('Uint8Array')
@staticInterop
class JSUint8Array1 extends JSTypedArray {
class JSUint8Array1 {
external factory JSUint8Array1._create1(JSAny bufferOrLength);
external factory JSUint8Array1._create3(
JSArrayBuffer buffer,
Expand Down