Skip to content

Commit 7f70fe8

Browse files
seishuntargos
authored andcommitted
tools: add BigInt to globals
PR-URL: #21237 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent bda34ea commit 7f70fe8

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

‎.eslintrc.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ module.exports ={
243243
'node-core/no-unescaped-regexp-dot': 'error',
244244
},
245245
globals: {
246+
BigInt: false,
246247
COUNTER_HTTP_CLIENT_REQUEST: false,
247248
COUNTER_HTTP_CLIENT_RESPONSE: false,
248249
COUNTER_HTTP_SERVER_REQUEST: false,

‎lib/internal/fs/utils.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ Stats.prototype._checkModeProperty = function(property){
160160
returnfalse;// Some types are not available on Windows
161161
}
162162
if(typeofthis.mode==='bigint'){// eslint-disable-line valid-typeof
163-
// eslint-disable-next-line no-undef
164163
return(this.mode&BigInt(S_IFMT))===BigInt(property);
165164
}
166165
return(this.mode&S_IFMT)===property;

‎test/parallel/test-fs-stat-bigint.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ function verifyStats(bigintStats, numStats){
3131
`difference of ${key}.getTime() should < 2.\n`+
3232
`Number version ${time}, BigInt version ${time2}n`);
3333
}elseif(key==='mode'){
34-
// eslint-disable-next-line no-undef
3534
assert.strictEqual(bigintStats[key],BigInt(val));
3635
assert.strictEqual(
3736
bigintStats.isBlockDevice(),
@@ -65,7 +64,6 @@ function verifyStats(bigintStats, numStats){
6564
assert.strictEqual(bigintStats[key],undefined);
6665
assert.strictEqual(numStats[key],undefined);
6766
}elseif(Number.isSafeInteger(val)){
68-
// eslint-disable-next-line no-undef
6967
assert.strictEqual(bigintStats[key],BigInt(val));
7068
}else{
7169
assert(

0 commit comments

Comments
(0)