mirror of
https://github.com/nodejs/node.git
synced 2025-05-09 07:27:32 +00:00

This reverts commit 982e3bdb1f
. It is
believed that the original PR should not have landed as it is as the
implemented and exposed API has a variety of flaws.
PR-URL: https://github.com/nodejs/node/pull/19577
Refs: https://github.com/nodejs/node/pull/19438
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
21 lines
668 B
JavaScript
21 lines
668 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const assert = require('assert');
|
|
const versionParts = process.versions.node.split('.');
|
|
|
|
assert.strictEqual(process.release.name, 'node');
|
|
|
|
// it's expected that future LTS release lines will have additional
|
|
// branches in here
|
|
if (versionParts[0] === '4' && versionParts[1] >= 2) {
|
|
assert.strictEqual(process.release.lts, 'Argon');
|
|
} else if (versionParts[0] === '6' && versionParts[1] >= 9) {
|
|
assert.strictEqual(process.release.lts, 'Boron');
|
|
} else if (versionParts[0] === '8' && versionParts[1] >= 9) {
|
|
assert.strictEqual(process.release.lts, 'Carbon');
|
|
} else {
|
|
assert.strictEqual(process.release.lts, undefined);
|
|
}
|