Files
wazero/imports/assemblyscript/example/testdata/index.ts
Crypt Keeper 5bd521eb3c Moves host function imports into their own directory (#784)
Our root directory is getting crowded and it is also difficult to
organize the "host imports" concept due to this.

This moves common and language-specific imports into their own
directory. This will break go import signatures on the next release, but
is more sustainable overall.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-08-31 10:22:15 +08:00

9 lines
193 B
TypeScript

export function hello_world(arg: u32): u32 {
trace("hello world", 2, arg + 0.1, arg + 0.2);
return arg + 3;
}
export function goodbye_world(): void {
throw new Error("sad sad world");
}