The library code in lib.c
conditionally calls the POSIX read
syscall
causing an import, but optimization on the final output eliminates that
code path.
Result is a stray __syscall3
function which references FS
, imported by
the wasm but unused in it. Since the FS
isn't defined because of using
-s NO_FILESYSTEM=1
, Closure sees it's undefined and either turns it into
a (void 0)
(1.39.6) or fails immediately (1.39.7).