emscripten-core / emscripten-core/emscripten

EM_JS doesn't insert semicolons

Open
#11,793 4 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

The EM_JS macro requires explicit semicolons, if you write code in the now common semicolon-less style it will complain.

Adding semicolons is likely to be tricky, but maybe it would be possible to warn if it doesn't see them?

Or could it output the function with preserved linebreaks, so that the compressor can handle the semicolon insertion?

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.