mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
e2e2bc83c0
Replace Object.prototpye.hasOwnProperty() with Object.hasOwn() where applicable. PR-URL: https://github.com/nodejs/node/pull/41664 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
11 lines
352 B
JavaScript
11 lines
352 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
// check for existence
|
|
assert(Object.hasOwn(process.config.variables, 'node_module_version'));
|
|
|
|
// Ensure that `node_module_version` is an Integer > 0
|
|
assert(Number.isInteger(process.config.variables.node_module_version));
|
|
assert(process.config.variables.node_module_version > 0);
|