gh-124928: Emscripten node support: Clean up old node <= 16 flags (#124929)

Clean up configure flags for old node versions

These flags are only needed for node <= 16. Node 16 has been end of life since
October of 2023.
This commit is contained in:
Hood Chatham 2024-10-29 07:28:54 +01:00 committed by GitHub
parent 85799f1ffd
commit dc2552d429
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 83 deletions

View file

@ -0,0 +1,9 @@
// If process is undefined, we're not running in the node runtime let it go I
// guess?
if (typeof process !== "undefined") {
const nodeVersion = Number(process.versions.node.split('.',1)[0]);
if (nodeVersion < 18) {
process.stderr.write(`Node version must be >= 18, got version ${process.version}\n`);
process.exit(1);
}
}