mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 15:14:33 +00:00
BREAKING(fs): remove Deno.ftruncate[Sync]()
(#25412)
Towards #22079 Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
This commit is contained in:
parent
ac33fc2892
commit
3d36cbd056
9 changed files with 6 additions and 131 deletions
|
@ -77,22 +77,6 @@ const denoNs = {
|
|||
lstat: fs.lstat,
|
||||
truncateSync: fs.truncateSync,
|
||||
truncate: fs.truncate,
|
||||
ftruncateSync(rid, len) {
|
||||
internals.warnOnDeprecatedApi(
|
||||
"Deno.ftruncateSync()",
|
||||
new Error().stack,
|
||||
"Use `Deno.FsFile.truncateSync()` instead.",
|
||||
);
|
||||
return fs.ftruncateSync(rid, len);
|
||||
},
|
||||
ftruncate(rid, len) {
|
||||
internals.warnOnDeprecatedApi(
|
||||
"Deno.ftruncate()",
|
||||
new Error().stack,
|
||||
"Use `Deno.FsFile.truncate()` instead.",
|
||||
);
|
||||
return fs.ftruncate(rid, len);
|
||||
},
|
||||
errors: errors.errors,
|
||||
inspect: console.inspect,
|
||||
env: os.env,
|
||||
|
|
|
@ -802,8 +802,6 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) {
|
|||
delete globalThis.window;
|
||||
delete Deno.Buffer;
|
||||
delete Deno.File;
|
||||
delete Deno.ftruncate;
|
||||
delete Deno.ftruncateSync;
|
||||
delete Deno.FsFile.prototype.rid;
|
||||
delete Deno.funlock;
|
||||
delete Deno.funlockSync;
|
||||
|
@ -975,8 +973,6 @@ function bootstrapWorkerRuntime(
|
|||
if (future) {
|
||||
delete Deno.Buffer;
|
||||
delete Deno.File;
|
||||
delete Deno.ftruncate;
|
||||
delete Deno.ftruncateSync;
|
||||
delete Deno.FsFile.prototype.rid;
|
||||
delete Deno.funlock;
|
||||
delete Deno.funlockSync;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue