mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
remove return from unchecked operator for FixedArray (#603)
This commit is contained in:
parent
bc294203bf
commit
4a308aa50e
@ -36,7 +36,7 @@ export class FixedArray<T> {
|
||||
|
||||
@operator("[]=") private __set(index: i32, value: T): void {
|
||||
if (<u32>index >= <u32>this.length) throw new RangeError(E_INDEXOUTOFRANGE);
|
||||
return this.__unchecked_set(index, value);
|
||||
this.__unchecked_set(index, value);
|
||||
}
|
||||
|
||||
@operator("{}") private __unchecked_get(index: i32): T {
|
||||
|
Loading…
x
Reference in New Issue
Block a user