From ffb5f7a4e1d5d4ac488058ca3ec3c0805587fe44 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Thu, 17 Dec 2020 16:37:57 +0000 Subject: refactor: Rename runtime/rt to runtime/js (#8806) --- runtime/js/40_plugins.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 runtime/js/40_plugins.js (limited to 'runtime/js/40_plugins.js') diff --git a/runtime/js/40_plugins.js b/runtime/js/40_plugins.js new file mode 100644 index 000000000..f5aefd400 --- /dev/null +++ b/runtime/js/40_plugins.js @@ -0,0 +1,13 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. + +((window) => { + const core = window.Deno.core; + + function openPlugin(filename) { + return core.jsonOpSync("op_open_plugin", { filename }); + } + + window.__bootstrap.plugins = { + openPlugin, + }; +})(this); -- cgit v1.2.3