summaryrefslogtreecommitdiff
path: root/core/core.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/core.js')
-rw-r--r--core/core.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/core/core.js b/core/core.js
index 0697458de..a86ece436 100644
--- a/core/core.js
+++ b/core/core.js
@@ -3,8 +3,7 @@
((window) => {
// Available on start due to bindings.
- const core = window.Deno.core;
- const { recv, send } = core;
+ const { send } = window.Deno.core;
let opsCache = {};
const errorMap = {};
@@ -14,10 +13,6 @@
const NO_PROMISE = null; // Alias to null is faster than plain nulls
const promiseRing = new Array(RING_SIZE).fill(NO_PROMISE);
- function init() {
- recv(handleAsyncMsgFromRust);
- }
-
function setPromise(promiseId) {
const idx = promiseId % RING_SIZE;
// Move old promise from ring to map
@@ -131,6 +126,6 @@
close,
resources,
registerErrorClass,
- init,
+ handleAsyncMsgFromRust,
});
})(this);