Add ArrayBuffer/DataView/Symbol#toString and improve Errors (#332)

This commit is contained in:
Max Graey
2018-11-18 12:43:44 +02:00
committed by Daniel Wirtz
parent a79db87af9
commit 1928404f3b
13 changed files with 3479 additions and 118 deletions

View File

@ -30,4 +30,8 @@ export class ArrayBuffer {
memory.copy(changetype<usize>(buffer) + HEADER_SIZE, changetype<usize>(this) + HEADER_SIZE + begin, newLen);
return buffer;
}
toString(): string {
return "[object ArrayBuffer]";
}
}