Skip to content

[Loader question] How to wrap a class around a memory reference #455

@willemneal

Description

@willemneal

With the new loader from #411, it's clear how to construct a AS object from the host, but is it possible to use a reference from AS and construct a class in the host?

Currently, I'm working on the wasm parser and while I construct the Parser object with the loader, it returns a Module object.

How do I bypass the constructor and change the self reference instead of allocating a new object on the wasm side?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions