mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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:
parent
85799f1ffd
commit
dc2552d429
4 changed files with 12 additions and 83 deletions
9
Tools/wasm/emscripten/node_pre.js
Normal file
9
Tools/wasm/emscripten/node_pre.js
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue