Skip to content

is it possible to make work javascript externs with emscripten? #1261

@barisyild

Description

@barisyild

It is possible to run JavaScript code directly using EM_ASM macros in Emscripten.
This approach could potentially provide a way to support JavaScript externs for the hxcpp wasm target.

https://github.com/alextyner/wasm-canvas/blob/38aa03df3c6656acd8dce5a92ef56afec5abb3bb/src/canvas.c#L15
https://emscripten.org/docs/api_reference/emscripten.h.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions