Skip to content

Commit

Permalink
Fixed the 3rd argument for TypedArray.fill(). (#82480)
Browse files Browse the repository at this point in the history
`TypedArray.fill()` expects `end` as the 3rd argument.
  • Loading branch information
shin1m authored Feb 24, 2023
1 parent 790499d commit 5ba867f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/wasm/runtime/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function assert_int_in_range(value: Number, min: Number, max: Number) {
}

export function _zero_region(byteOffset: VoidPtr, sizeBytes: number): void {
Module.HEAP8.fill(0, <any>byteOffset, sizeBytes);
Module.HEAP8.fill(0, <any>byteOffset, <any>byteOffset + sizeBytes);
}

export function setB32(offset: MemOffset, value: number | boolean): void {
Expand Down

0 comments on commit 5ba867f

Please sign in to comment.