Skip to content

AssemblyScript Loader #200

Closed
Closed
@marcus-sa

Description

@marcus-sa

I've been trying this project out for a few days, and I must say, usage wise I'm pretty confused.
First of all there's no NPM package for https://github.com/AssemblyScript/assemblyscript/tree/master/lib/loader available as shown in the docs that there should be.

export declare function instantiateStreaming<T extends {}>(response: Response, imports?: ImportsObject): Promise<ASUtil & T>;

Should be Promise<Response> and not Response.


Should be optional.

We need some examples, because I'm really confused on how some things should be done.
E.g using module.getString and module.newString, because when I try to log something from my AssemblyScript file all it logs is a number which makes sense.
But what are the purpose of these two functions?
The docs definitely needs to be updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions