@@ -1647,7 +1647,7 @@ function readdirSync(path, options) {
16471647 * ) => any} [callback]
16481648 * @returns {void }
16491649 */
1650- function fstat ( fd , options = { bigint : false } , callback ) {
1650+ function fstat ( fd , options = { __proto__ : null , bigint : false } , callback ) {
16511651 if ( typeof options === 'function' ) {
16521652 callback = options ;
16531653 options = kEmptyObject ;
@@ -1670,7 +1670,7 @@ function fstat(fd, options = { bigint: false }, callback) {
16701670 * ) => any} callback
16711671 * @returns {void }
16721672 */
1673- function lstat ( path , options = { bigint : false } , callback ) {
1673+ function lstat ( path , options = { __proto__ : null , bigint : false } , callback ) {
16741674 if ( typeof options === 'function' ) {
16751675 callback = options ;
16761676 options = kEmptyObject ;
@@ -1698,7 +1698,7 @@ function lstat(path, options = { bigint: false }, callback) {
16981698 * ) => any} callback
16991699 * @returns {void }
17001700 */
1701- function stat ( path , options = { bigint : false , throwIfNoEntry : true } , callback ) {
1701+ function stat ( path , options = { __proto__ : null , bigint : false , throwIfNoEntry : true } , callback ) {
17021702 if ( typeof options === 'function' ) {
17031703 callback = options ;
17041704 options = kEmptyObject ;
@@ -1718,7 +1718,7 @@ function stat(path, options = { bigint: false, throwIfNoEntry: true }, callback)
17181718 binding . stat ( getValidatedPath ( path ) , options . bigint , req , options . throwIfNoEntry ) ;
17191719}
17201720
1721- function statfs ( path , options = { bigint : false } , callback ) {
1721+ function statfs ( path , options = { __proto__ : null , bigint : false } , callback ) {
17221722 if ( typeof options === 'function' ) {
17231723 callback = options ;
17241724 options = kEmptyObject ;
@@ -1743,7 +1743,7 @@ function statfs(path, options = { bigint: false }, callback) {
17431743 * @param {{ bigint?: boolean; } } [options]
17441744 * @returns {Stats | undefined }
17451745 */
1746- function fstatSync ( fd , options = { bigint : false } ) {
1746+ function fstatSync ( fd , options = { __proto__ : null , bigint : false } ) {
17471747 const stats = binding . fstat ( fd , options . bigint , undefined , false ) ;
17481748 if ( stats === undefined ) {
17491749 return ;
@@ -1761,7 +1761,7 @@ function fstatSync(fd, options = { bigint: false }) {
17611761 * }} [options]
17621762 * @returns {Stats | undefined }
17631763 */
1764- function lstatSync ( path , options = { bigint : false , throwIfNoEntry : true } ) {
1764+ function lstatSync ( path , options = { __proto__ : null , bigint : false , throwIfNoEntry : true } ) {
17651765 path = getValidatedPath ( path ) ;
17661766 if ( permission . isEnabled ( ) && ! permission . has ( 'fs.read' , path ) ) {
17671767 const resource = BufferIsBuffer ( path ) ? BufferToString ( path ) : path ;
@@ -1790,7 +1790,7 @@ function lstatSync(path, options = { bigint: false, throwIfNoEntry: true }) {
17901790 * }} [options]
17911791 * @returns {Stats }
17921792 */
1793- function statSync ( path , options = { bigint : false , throwIfNoEntry : true } ) {
1793+ function statSync ( path , options = { __proto__ : null , bigint : false , throwIfNoEntry : true } ) {
17941794 const stats = binding . stat (
17951795 getValidatedPath ( path ) ,
17961796 options . bigint ,
@@ -1803,7 +1803,7 @@ function statSync(path, options = { bigint: false, throwIfNoEntry: true }) {
18031803 return getStatsFromBinding ( stats ) ;
18041804}
18051805
1806- function statfsSync ( path , options = { bigint : false } ) {
1806+ function statfsSync ( path , options = { __proto__ : null , bigint : false } ) {
18071807 const stats = binding . statfs ( getValidatedPath ( path ) , options . bigint ) ;
18081808 return getStatFsFromBinding ( stats ) ;
18091809}
0 commit comments