Add initial Set implementation to tests, see #17; Fix check when shrinking a Map

This commit is contained in:
dcodeIO
2018-06-21 00:57:46 +02:00
parent dd4be7b693
commit c44cbec2c7
9 changed files with 34835 additions and 16995 deletions

View File

@ -32,11 +32,11 @@ export class ArrayBuffer {
static readonly HEADER_SIZE: usize = HEADER_SIZE;
@inline load<T>(index: i32): T {
@inline load<T>(index: usize): T {
return load<T>(changetype<usize>(this) + index * sizeof<T>(), HEADER_SIZE);
}
@inline store<T>(index: i32, value: T): void {
@inline store<T>(index: usize, value: T): void {
store<T>(changetype<usize>(this) + index * sizeof<T>(), value, HEADER_SIZE);
}
}