summaryrefslogtreecommitdiff
path: root/core/core.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/core.js')
-rw-r--r--core/core.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/core.js b/core/core.js
index b0de55b2c..7b4e24702 100644
--- a/core/core.js
+++ b/core/core.js
@@ -256,6 +256,14 @@ SharedQueue Binary Layout
promise.resolve(res);
}
+ function resources() {
+ return jsonOpSync("op_resources");
+ }
+
+ function close(rid) {
+ jsonOpSync("op_close", { rid });
+ }
+
Object.assign(window.Deno.core, {
jsonOpAsync,
jsonOpSync,
@@ -263,6 +271,8 @@ SharedQueue Binary Layout
dispatch: send,
dispatchByName: dispatch,
ops,
+ close,
+ resources,
registerErrorClass,
getErrorClass,
// sharedQueue is private but exposed for testing.