diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-17 18:09:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 18:09:50 +0200 |
commit | bda937938550a0969588a6878d2fb6d72c17b22d (patch) | |
tree | cad613f3e6ec0dcc545a08e8ec394b599425babd /cli/rt/30_net.js | |
parent | 3421f4dbbd5cabb3a0866ebb3b8aeae5b62730ef (diff) |
refactor: move op_resources and op_close to deno_core (#7539)
Moves op_close and op_resources to deno_core::ops and exports them.
Adds serde dependency to deno_core and reexports it.
Moves JS implementation of those ops to Deno.core and reexports them in Deno.
Diffstat (limited to 'cli/rt/30_net.js')
-rw-r--r-- | cli/rt/30_net.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cli/rt/30_net.js b/cli/rt/30_net.js index 8c3dcb4ba..53de5200d 100644 --- a/cli/rt/30_net.js +++ b/cli/rt/30_net.js @@ -4,7 +4,6 @@ const core = window.Deno.core; const { errors } = window.__bootstrap.errors; const { read, write } = window.__bootstrap.io; - const { close } = window.__bootstrap.resources; const ShutdownMode = { // See http://man7.org/linux/man-pages/man2/shutdown.2.html @@ -88,7 +87,7 @@ } close() { - close(this.rid); + core.close(this.rid); } // TODO(lucacasonato): make this unavailable in stable @@ -138,7 +137,7 @@ } close() { - close(this.rid); + core.close(this.rid); } [Symbol.asyncIterator]() { @@ -187,7 +186,7 @@ } close() { - close(this.rid); + core.close(this.rid); } async *[Symbol.asyncIterator]() { |