emscripten-core / emscripten

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

Add missing options.support_node check when using preload cache #23059

Open dashodanger opened 15 hours ago

dashodanger commented 15 hours ago

I was receiving an "Uncaught (in promise) ReferenceError: isNode is not defined" error when using the preload cache and building with sENVIRONMENT=web. This appears to fix the issue and seems to be in line with other checks for options.support_node in the script