More stdlib setup

This commit is contained in:
dcodeIO
2017-12-16 17:54:53 +01:00
parent 85a9fb1eb5
commit 2720515982
47 changed files with 875 additions and 733 deletions

16
std/assembly/error.ts Normal file
View File

@ -0,0 +1,16 @@
@global()
export class Error {
name: string = "Error";
message: string;
stack: string = ""; // TODO
constructor(message: string = "") {
this.message = message;
}
}
@global()
export class RangeError extends Error {
name: string = "RangeError";
}