mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-22 11:11:43 +00:00
More built-in constants; Get/set parsing fixes; I64.toF64 fixes
This commit is contained in:
@ -17,6 +17,18 @@ export class Array<T> {
|
||||
}
|
||||
}
|
||||
|
||||
@operator("[]")
|
||||
get(index: i32): T {
|
||||
assert(index > 0 && index < this.capacity);
|
||||
throw new Error("not implemented");
|
||||
}
|
||||
|
||||
@operator("[]=")
|
||||
set(index: i32, value: T): void {
|
||||
assert(index > 0 && index < this.capacity);
|
||||
throw new Error("not implemented");
|
||||
}
|
||||
|
||||
dispose(): void {
|
||||
store<i64>(changetype<usize>(this), 0);
|
||||
Heap.dispose(this.ptr);
|
||||
|
Reference in New Issue
Block a user