Commit 26a540d 1 parent a36a0fd commit 26a540d Copy full SHA for 26a540d
File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3786,7 +3786,7 @@ Type: Documentation-only
3786
3786
Passing non-supported argument types is deprecated and, instead of returning ` false ` ,
3787
3787
will throw an error in a future version.
3788
3788
3789
- ### DEP0187: ` fs.existsSync ` never throw on invalid arguments
3789
+ ### DEP0187: Passing invalid argument types to ` fs.existsSync `
3790
3790
3791
3791
<!-- YAML
3792
3792
changes:
@@ -3797,7 +3797,8 @@ changes:
3797
3797
3798
3798
Type: Runtime
3799
3799
3800
- Returning false on validation errors is deprecated.
3800
+ Passing non-supported argument types is deprecated and, instead of returning ` false ` ,
3801
+ will throw an error in a future version.
3801
3802
3802
3803
[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
3803
3804
[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ function existsSync(path) {
288
288
try {
289
289
path = getValidatedPath ( path ) ;
290
290
} catch {
291
- deprecate ( ( ) => { } , 'never throw on invalid arguments for fs.existsSync is deprecated' , 'DEP0187' ) ;
291
+ deprecate ( ( ) => { } , 'Passing invalid argument types to fs.existsSync is deprecated' , 'DEP0187' ) ;
292
292
return false ;
293
293
}
294
294
You can’t perform that action at this time.
0 commit comments