You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Internal APIs from cutils.c and other utility functions should be made static in the amalgamated source to prevent name clashes with the project it is linked to.
Suggested solutions:
use the preprocessor with a JS_INTERNAL storage class for such symbols that would expand to nothing in the regular case and to static in the amalgamated source
add the static keyword on all symbols not explicitly tagged as JS_EXTERN when amalgamating sources
This was fixed by #1344. It's a little regrettable code from cutils.h gets duplicated into multiple .c files now but that only affects non-amalgamated builds.
Activity
bnoordhuis commentedon Sep 5, 2026
This was fixed by #1344. It's a little regrettable code from cutils.h gets duplicated into multiple .c files now but that only affects non-amalgamated builds.