mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
287ec1e8f4
This reverts commit 91e0f8db11
.
PR-URL: https://github.com/nodejs/node/pull/20062
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
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);
|
|
}
|