mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-16 16:31:32 +00:00
remove return from unchecked operator for FixedArray (#603)
This commit is contained in:
@ -36,7 +36,7 @@ export class FixedArray<T> {
|
|||||||
|
|
||||||
@operator("[]=") private __set(index: i32, value: T): void {
|
@operator("[]=") private __set(index: i32, value: T): void {
|
||||||
if (<u32>index >= <u32>this.length) throw new RangeError(E_INDEXOUTOFRANGE);
|
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 {
|
@operator("{}") private __unchecked_get(index: i32): T {
|
||||||
|
Reference in New Issue
Block a user