diff options
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/11_workers.js | 6 | ||||
-rw-r--r-- | runtime/js/40_permissions.js | 4 | ||||
-rw-r--r-- | runtime/js/40_plugins.js | 16 | ||||
-rw-r--r-- | runtime/js/90_deno_ns.js | 2 |
4 files changed, 6 insertions, 22 deletions
diff --git a/runtime/js/11_workers.js b/runtime/js/11_workers.js index b59832635..38267f571 100644 --- a/runtime/js/11_workers.js +++ b/runtime/js/11_workers.js @@ -119,7 +119,7 @@ env = "inherit", hrtime = "inherit", net = "inherit", - plugin = "inherit", + ffi = "inherit", read = "inherit", run = "inherit", write = "inherit", @@ -128,7 +128,7 @@ env: parseUnitPermission(env, "env"), hrtime: parseUnitPermission(hrtime, "hrtime"), net: parseArrayPermission(net, "net"), - plugin: parseUnitPermission(plugin, "plugin"), + ffi: parseUnitPermission(ffi, "ffi"), read: parseArrayPermission(read, "read"), run: parseUnitPermission(run, "run"), write: parseArrayPermission(write, "write"), @@ -175,7 +175,7 @@ env: false, hrtime: false, net: false, - plugin: false, + ffi: false, read: false, run: false, write: false, diff --git a/runtime/js/40_permissions.js b/runtime/js/40_permissions.js index c84f8fde8..1b053f938 100644 --- a/runtime/js/40_permissions.js +++ b/runtime/js/40_permissions.js @@ -28,14 +28,14 @@ * @property {PermissionStatus} status */ - /** @type {ReadonlyArray<"read" | "write" | "net" | "env" | "run" | "plugin" | "hrtime">} */ + /** @type {ReadonlyArray<"read" | "write" | "net" | "env" | "run" | "ffi" | "hrtime">} */ const permissionNames = [ "read", "write", "net", "env", "run", - "plugin", + "ffi", "hrtime", ]; diff --git a/runtime/js/40_plugins.js b/runtime/js/40_plugins.js deleted file mode 100644 index 0796fd5ce..000000000 --- a/runtime/js/40_plugins.js +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. -"use strict"; - -((window) => { - const core = window.Deno.core; - - function openPlugin(filename) { - const rid = core.opSync("op_open_plugin", filename); - core.syncOpsCache(); - return rid; - } - - window.__bootstrap.plugins = { - openPlugin, - }; -})(this); diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index aee07eae7..796361d7a 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -110,7 +110,6 @@ Signal: __bootstrap.signals.Signal, SignalStream: __bootstrap.signals.SignalStream, emit: __bootstrap.compilerApi.emit, - openPlugin: __bootstrap.plugins.openPlugin, kill: __bootstrap.process.kill, setRaw: __bootstrap.tty.setRaw, consoleSize: __bootstrap.tty.consoleSize, @@ -136,5 +135,6 @@ HttpClient: __bootstrap.fetch.HttpClient, createHttpClient: __bootstrap.fetch.createHttpClient, http: __bootstrap.http, + dlopen: __bootstrap.ffi.dlopen, }; })(this); |