mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
parent
b01578ae1f
commit
c73b4a0877
12 changed files with 26 additions and 162 deletions
|
@ -1,6 +1,6 @@
|
|||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import { core, internals } from "ext:core/mod.js";
|
||||
import { core } from "ext:core/mod.js";
|
||||
import {
|
||||
op_net_listen_udp,
|
||||
op_net_listen_unixpacket,
|
||||
|
@ -96,22 +96,6 @@ const denoNs = {
|
|||
stdin: io.stdin,
|
||||
stdout: io.stdout,
|
||||
stderr: io.stderr,
|
||||
seek(rid, offset, whence) {
|
||||
internals.warnOnDeprecatedApi(
|
||||
"Deno.seek()",
|
||||
new Error().stack,
|
||||
"Use `file.seek()` instead.",
|
||||
);
|
||||
return fs.seek(rid, offset, whence);
|
||||
},
|
||||
seekSync(rid, offset, whence) {
|
||||
internals.warnOnDeprecatedApi(
|
||||
"Deno.seekSync()",
|
||||
new Error().stack,
|
||||
"Use `file.seekSync()` instead.",
|
||||
);
|
||||
return fs.seekSync(rid, offset, whence);
|
||||
},
|
||||
connect: net.connect,
|
||||
listen: net.listen,
|
||||
loadavg: os.loadavg,
|
||||
|
|
|
@ -804,8 +804,6 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) {
|
|||
delete Deno.FsFile.prototype.rid;
|
||||
delete Deno.funlock;
|
||||
delete Deno.funlockSync;
|
||||
delete Deno.seek;
|
||||
delete Deno.seekSync;
|
||||
}
|
||||
} else {
|
||||
// Warmup
|
||||
|
@ -967,8 +965,6 @@ function bootstrapWorkerRuntime(
|
|||
delete Deno.FsFile.prototype.rid;
|
||||
delete Deno.funlock;
|
||||
delete Deno.funlockSync;
|
||||
delete Deno.seek;
|
||||
delete Deno.seekSync;
|
||||
}
|
||||
} else {
|
||||
// Warmup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue