I'm not familiar with how BrowserFS is used but in order to use emscripten's $ERRNO_CODES it somehow needs to be pulled in as a dependency (for library JS files this involves a __deps entry, otherwise we have the DEFAULT_LIBRARY_FUNCS_TO_INCLUDE command line setting).
See https://github.com/emscripten-core/emscripten/issues/14783
I'm not familiar with how BrowserFS is used but in order to use emscripten's
$ERRNO_CODES
it somehow needs to be pulled in as a dependency (for library JS files this involves a __deps entry, otherwise we have theDEFAULT_LIBRARY_FUNCS_TO_INCLUDE
command line setting).My understanding is that prior to https://github.com/emscripten-core/emscripten/pull/14730,
$ERRNO_CODES
was likely being pulled in indirectly.