Skip to content

Export all API symbols in the QJS_WASI_REACTOR build - #1804

Merged
saghul merged 2 commits into
quickjs-ng:masterfrom
effulgentsia:master
Oct 20, 2026
Merged

saghul merged 2 commits into
quickjs-ng:masterfrom
effulgentsia:master

Conversation

@effulgentsia

Copy link
Copy Markdown
Contributor

#1525 had the (unintended?) side effect of changing the WASI REACTOR build from exporting the full API (~300 symbols) in 0.15.1 to only ~10 symbols in 0.16 and later.

This PR restores the full export list for QJS_WASI_REACTOR.

@bnoordhuis

Copy link
Copy Markdown
Contributor

Maybe add a check to the wasi job in .github/workflows/ci.yml that verifies expected symbols are indeed present in the build artifact?

paralin added a commit to aperturerobotics/go-quickjs-wasi-reactor that referenced this pull request Oct 14, 2026
QuickJS-NG v0.15.1 returned negative inputs to BigInt.asUintN unchanged,
so BigInt.asUintN(64, -1n) was -1n. Code that wraps 64-bit unsigned
arithmetic with it computed wrong values. v0.17.0 fixes the short BigInt
fast path; the BigInt test now checks the wrapping.

v0.16 and later give the C API default visibility only when
BUILDING_QJS_SHARED is set, so the reactor target exported almost none
of it. Define that macro in the build until quickjs-ng/quickjs#1804
moves it into the reactor target.

Signed-off-by: Christian Stewart <[email protected]>
@effulgentsia

Copy link
Copy Markdown
Contributor Author

Maybe add a check to the wasi job in .github/workflows/ci.yml that verifies expected symbols are indeed present in the build artifact?

Sorry, I missed the email notification for this. I just now added that.

@bnoordhuis bnoordhuis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@saghul
saghul merged commit 270b8c9 into quickjs-ng:master Oct 20, 2026
128 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants