summaryrefslogtreecommitdiff
path: root/cli/rt/30_net.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/rt/30_net.js')
-rw-r--r--cli/rt/30_net.js7
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]() {