mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 08:51:34 +00:00
Correct TypedArray#byteOffset handling and fix TypedArray#subarray (#328)
This commit is contained in:
@ -21,7 +21,7 @@ export class Uint8Array extends TypedArray<u8,u32> {
|
||||
export class Uint8ClampedArray extends TypedArray<u8,u32> {
|
||||
static readonly BYTES_PER_ELEMENT: usize = sizeof<u8>();
|
||||
|
||||
@operator("[]=")
|
||||
@inline @operator("[]=")
|
||||
protected __set(index: i32, value: i32): void {
|
||||
super.__set(index, max(min(value, 255), 0));
|
||||
}
|
||||
|
Reference in New Issue
Block a user