summaryrefslogtreecommitdiff
path: root/runtime/js/40_plugins.js
blob: f5aefd400c08d71e9f192e9e607e0fa321525a9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);