mirror of
https://github.com/python/cpython.git
synced 2025-09-14 12:46:49 +00:00

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.
9 lines
352 B
JavaScript
9 lines
352 B
JavaScript
// 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);
|
|
}
|
|
}
|