Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs: make params in writing methods optional #42601

Merged
merged 1 commit into from
May 17, 2022

Commits on May 17, 2022

  1. fs: make params in writing methods optional

    This change allows passing objects as "named parameters":
    - `fs.write(fd, buffer[, options], callback)`
    - `fs.writeSync(fd, buffer[, options])`
    - `filehandle.write(buffer[, options])`
    
    Fixes: nodejs#41666
    
    PR-URL: nodejs#42601
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    LiviaMedeiros committed May 17, 2022
    Configuration menu
    Copy the full SHA
    c100f9a View commit details
    Browse the repository at this point in the history