summaryrefslogtreecommitdiff
path: root/cli/rt/27_websocket.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-17 18:09:50 +0200
committerGitHub <noreply@github.com>2020-09-17 18:09:50 +0200
commitbda937938550a0969588a6878d2fb6d72c17b22d (patch)
treecad613f3e6ec0dcc545a08e8ec394b599425babd /cli/rt/27_websocket.js
parent3421f4dbbd5cabb3a0866ebb3b8aeae5b62730ef (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/27_websocket.js')
-rw-r--r--cli/rt/27_websocket.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/rt/27_websocket.js b/cli/rt/27_websocket.js
index d7fc03169..ee114170d 100644
--- a/cli/rt/27_websocket.js
+++ b/cli/rt/27_websocket.js
@@ -2,7 +2,6 @@
((window) => {
const core = window.Deno.core;
- const { close } = window.__bootstrap.resources;
const { requiredArguments } = window.__bootstrap.webUtil;
const CONNECTING = 0;
const OPEN = 1;
@@ -71,7 +70,7 @@
event.target = this;
this.onclose?.(event);
this.dispatchEvent(event);
- close(this.#rid);
+ core.close(this.#rid);
});
const event = new Event("error");
@@ -242,7 +241,7 @@
event.target = this;
this.onclose?.(event);
this.dispatchEvent(event);
- close(this.#rid);
+ core.close(this.#rid);
});
}
}