Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: KidLisp bundle — use IIFE format for QuickJS compatibility

ESM format doesn't work with JS_EVAL_TYPE_GLOBAL in QuickJS.
Switch to IIFE with globalThis.KidLispModule. Fix error message path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+2 -2
+1 -1
fedac/native/docker-build.sh
··· 307 307 log " Bundling KidLisp..." 308 308 cd "$SRC" 309 309 npx esbuild system/public/aesthetic.computer/lib/kidlisp.mjs \ 310 - --bundle --format=esm --platform=neutral \ 310 + --bundle --format=iife --global-name=KidLispModule --platform=neutral \ 311 311 --outfile=/tmp/kidlisp-bundle.js 2>/dev/null || true 312 312 if [ -f /tmp/kidlisp-bundle.js ]; then 313 313 mkdir -p "$IROOT/jslib"
+1 -1
fedac/native/src/js-bindings.c
··· 1862 1862 } 1863 1863 JS_FreeValue(ctx, kl_result); 1864 1864 } else { 1865 - fprintf(stderr, "[js] KidLisp bundle not found at /lib/kidlisp-bundle.js (optional)\n"); 1865 + fprintf(stderr, "[js] KidLisp bundle not found at /jslib/kidlisp-bundle.js (optional)\n"); 1866 1866 } 1867 1867 1868 1868 JS_FreeValue(ctx, global);