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

feat(runtime): stabilize Deno.ftruncate and Deno.ftruncateSync #10126

Merged

Conversation

caspervonb
Copy link
Contributor

This stabilizes Deno.ftruncate and Deno.ftruncateSync.

This is a well known system call and the interface is not going to change.
Implicitly requires write permissions as the file has to be opened with write to be truncated.

@piscisaureus
Copy link
Member

I don't have any objections. These APIs are not so pretty but they're very standard.
Can I suggest to also document their behavior when len is greater than the current length (the file is extended with zeroes, I believe).

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bartlomieju bartlomieju merged commit f5a9474 into denoland:main Apr 11, 2021
@caspervonb caspervonb deleted the feat-runtime-stabilize-ftruncate branch April 11, 2021 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants