@@ -1901,7 +1901,7 @@ function readdirSync(path, options) {
19011901 * ) => any} [callback]
19021902 * @returns {void }
19031903 */
1904- function fstat ( fd , options = { bigint : false } , callback ) {
1904+ function fstat ( fd , options = { __proto__ : null , bigint : false } , callback ) {
19051905 if ( typeof options === 'function' ) {
19061906 callback = options ;
19071907 options = kEmptyObject ;
@@ -1928,7 +1928,7 @@ function fstat(fd, options = { bigint: false }, callback) {
19281928 * ) => any} callback
19291929 * @returns {void }
19301930 */
1931- function lstat ( path , options = { bigint : false } , callback ) {
1931+ function lstat ( path , options = { __proto__ : null , bigint : false } , callback ) {
19321932 if ( typeof options === 'function' ) {
19331933 callback = options ;
19341934 options = kEmptyObject ;
@@ -1960,7 +1960,7 @@ function lstat(path, options = { bigint: false }, callback) {
19601960 * ) => any} callback
19611961 * @returns {void }
19621962 */
1963- function stat ( path , options = { bigint : false , throwIfNoEntry : true } , callback ) {
1963+ function stat ( path , options = { __proto__ : null , bigint : false , throwIfNoEntry : true } , callback ) {
19641964 if ( typeof options === 'function' ) {
19651965 callback = options ;
19661966 options = kEmptyObject ;
@@ -1983,7 +1983,7 @@ function stat(path, options = { bigint: false, throwIfNoEntry: true }, callback)
19831983 binding . stat ( getValidatedPath ( path ) , options . bigint , req , options . throwIfNoEntry ) ;
19841984}
19851985
1986- function statfs ( path , options = { bigint : false } , callback ) {
1986+ function statfs ( path , options = { __proto__ : null , bigint : false } , callback ) {
19871987 if ( typeof options === 'function' ) {
19881988 callback = options ;
19891989 options = kEmptyObject ;
@@ -2018,7 +2018,7 @@ function statfs(path, options = { bigint: false }, callback) {
20182018 * @param {{ bigint?: boolean; } } [options]
20192019 * @returns {Stats | undefined }
20202020 */
2021- function fstatSync ( fd , options = { bigint : false } ) {
2021+ function fstatSync ( fd , options = { __proto__ : null , bigint : false } ) {
20222022 const h = vfsState . handlers ;
20232023 if ( h !== null ) {
20242024 const result = h . fstatSync ( fd ) ;
@@ -2041,7 +2041,7 @@ function fstatSync(fd, options = { bigint: false }) {
20412041 * }} [options]
20422042 * @returns {Stats | undefined }
20432043 */
2044- function lstatSync ( path , options = { bigint : false , throwIfNoEntry : true } ) {
2044+ function lstatSync ( path , options = { __proto__ : null , bigint : false , throwIfNoEntry : true } ) {
20452045 const h = vfsState . handlers ;
20462046 if ( h !== null ) {
20472047 const result = h . lstatSync ( path , options ) ;
@@ -2075,7 +2075,7 @@ function lstatSync(path, options = { bigint: false, throwIfNoEntry: true }) {
20752075 * }} [options]
20762076 * @returns {Stats }
20772077 */
2078- function statSync ( path , options = { bigint : false , throwIfNoEntry : true } ) {
2078+ function statSync ( path , options = { __proto__ : null , bigint : false , throwIfNoEntry : true } ) {
20792079 const h = vfsState . handlers ;
20802080 if ( h !== null ) {
20812081 const result = h . statSync ( path , options ) ;
@@ -2093,7 +2093,7 @@ function statSync(path, options = { bigint: false, throwIfNoEntry: true }) {
20932093 return getStatsFromBinding ( stats ) ;
20942094}
20952095
2096- function statfsSync ( path , options = { bigint : false } ) {
2096+ function statfsSync ( path , options = { __proto__ : null , bigint : false } ) {
20972097 const h = vfsState . handlers ;
20982098 if ( h !== null ) {
20992099 const result = h . statfsSync ( path , options ) ;
0 commit comments