mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
53d4e04be5
Migrate various modules from using process.binding to internalBinding. PR-URL: https://github.com/nodejs/node/pull/24952 Refs: https://github.com/nodejs/node/issues/22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net>
13 lines
290 B
JavaScript
13 lines
290 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const constants = require('fs').constants;
|
|
|
|
if (common.isLinux) {
|
|
assert('O_NOATIME' in constants);
|
|
assert.strictEqual(constants.O_NOATIME, 0x40000);
|
|
} else {
|
|
assert(!('O_NOATIME' in constants));
|
|
}
|