diff options
Diffstat (limited to 'runtime/rt/40_plugins.js')
-rw-r--r-- | runtime/rt/40_plugins.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/rt/40_plugins.js b/runtime/rt/40_plugins.js new file mode 100644 index 000000000..f5aefd400 --- /dev/null +++ b/runtime/rt/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); |