@@ -1840,7 +1840,7 @@ function readdirSync(path, options) {
18401840 * ) => any} [callback]
18411841 * @returns {void }
18421842 */
1843- function fstat ( fd , options = { bigint : false } , callback ) {
1843+ function fstat ( fd , options = { __proto__ : null , bigint : false } , callback ) {
18441844 if ( typeof options === 'function' ) {
18451845 callback = options ;
18461846 options = kEmptyObject ;
@@ -1867,7 +1867,7 @@ function fstat(fd, options = { bigint: false }, callback) {
18671867 * ) => any} callback
18681868 * @returns {void }
18691869 */
1870- function lstat ( path , options = { bigint : false } , callback ) {
1870+ function lstat ( path , options = { __proto__ : null , bigint : false } , callback ) {
18711871 if ( typeof options === 'function' ) {
18721872 callback = options ;
18731873 options = kEmptyObject ;
@@ -1899,7 +1899,7 @@ function lstat(path, options = { bigint: false }, callback) {
18991899 * ) => any} callback
19001900 * @returns {void }
19011901 */
1902- function stat ( path , options = { bigint : false , throwIfNoEntry : true } , callback ) {
1902+ function stat ( path , options = { __proto__ : null , bigint : false , throwIfNoEntry : true } , callback ) {
19031903 if ( typeof options === 'function' ) {
19041904 callback = options ;
19051905 options = kEmptyObject ;
@@ -1922,7 +1922,7 @@ function stat(path, options = { bigint: false, throwIfNoEntry: true }, callback)
19221922 binding . stat ( getValidatedPath ( path ) , options . bigint , req , options . throwIfNoEntry ) ;
19231923}
19241924
1925- function statfs ( path , options = { bigint : false } , callback ) {
1925+ function statfs ( path , options = { __proto__ : null , bigint : false } , callback ) {
19261926 if ( typeof options === 'function' ) {
19271927 callback = options ;
19281928 options = kEmptyObject ;
@@ -1957,7 +1957,7 @@ function statfs(path, options = { bigint: false }, callback) {
19571957 * @param {{ bigint?: boolean; } } [options]
19581958 * @returns {Stats | undefined }
19591959 */
1960- function fstatSync ( fd , options = { bigint : false } ) {
1960+ function fstatSync ( fd , options = { __proto__ : null , bigint : false } ) {
19611961 const h = vfsState . handlers ;
19621962 if ( h !== null ) {
19631963 const result = h . fstatSync ( fd ) ;
@@ -1980,7 +1980,7 @@ function fstatSync(fd, options = { bigint: false }) {
19801980 * }} [options]
19811981 * @returns {Stats | undefined }
19821982 */
1983- function lstatSync ( path , options = { bigint : false , throwIfNoEntry : true } ) {
1983+ function lstatSync ( path , options = { __proto__ : null , bigint : false , throwIfNoEntry : true } ) {
19841984 const h = vfsState . handlers ;
19851985 if ( h !== null ) {
19861986 const result = h . lstatSync ( path , options ) ;
@@ -2014,7 +2014,7 @@ function lstatSync(path, options = { bigint: false, throwIfNoEntry: true }) {
20142014 * }} [options]
20152015 * @returns {Stats }
20162016 */
2017- function statSync ( path , options = { bigint : false , throwIfNoEntry : true } ) {
2017+ function statSync ( path , options = { __proto__ : null , bigint : false , throwIfNoEntry : true } ) {
20182018 const h = vfsState . handlers ;
20192019 if ( h !== null ) {
20202020 const result = h . statSync ( path , options ) ;
@@ -2032,7 +2032,7 @@ function statSync(path, options = { bigint: false, throwIfNoEntry: true }) {
20322032 return getStatsFromBinding ( stats ) ;
20332033}
20342034
2035- function statfsSync ( path , options = { bigint : false } ) {
2035+ function statfsSync ( path , options = { __proto__ : null , bigint : false } ) {
20362036 const h = vfsState . handlers ;
20372037 if ( h !== null ) {
20382038 const result = h . statfsSync ( path , options ) ;
0 commit comments