emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.91k stars 3.32k forks source link

Use preset to set doesNotExistError instead of postset. NFC #23026

Closed hoodmane closed 5 days ago

hoodmane commented 6 days ago

Sometimes we throw MEMFS.doesNotExistError before it is initialized. It doesn't really matter because the undefined we throw gets caught and thrown away, but it seems better to fix.