mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
[dart2wasm] Fix Wasm{Int,Float}Array.fill value types
Change-Id: I8eb8a8a547a77e416b73b44d5fb0c91e24dff17e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/318924 Reviewed-by: Joshua Litt <joshualitt@google.com> Commit-Queue: Ömer Ağacan <omersa@google.com>
This commit is contained in:
parent
b6e7b7e536
commit
b53e0b31ca
|
@ -182,7 +182,7 @@ class WasmIntArray<T extends _WasmInt> extends WasmArrayRef {
|
|||
external void write(int index, int value);
|
||||
external void copy(
|
||||
int offset, WasmIntArray<T> source, int sourceOffset, int size);
|
||||
external void fill(int offset, T value, int size);
|
||||
external void fill(int offset, int value, int size);
|
||||
}
|
||||
|
||||
/// A Wasm array with float element type.
|
||||
|
@ -194,7 +194,7 @@ class WasmFloatArray<T extends _WasmFloat> extends WasmArrayRef {
|
|||
external void write(int index, double value);
|
||||
external void copy(
|
||||
int offset, WasmFloatArray<T> source, int sourceOffset, int size);
|
||||
external void fill(int offset, T value, int size);
|
||||
external void fill(int offset, double value, int size);
|
||||
}
|
||||
|
||||
/// A Wasm array with reference element type, containing Dart objects.
|
||||
|
|
Loading…
Reference in a new issue