emscripten-core / emscripten-core/emscripten

Should we support trailing JS code in EM_JS macros

Open
#23,884 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

It turns out that the EM_JS macro can do more than just create a JS function.

Trailing JS code is also inserted and run as top-level code. See #23875.

Should we officially support this is?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.