summaryrefslogtreecommitdiff
path: root/runtime/js/40_plugins.js
blob: fd037b81f30d6ede1aecb439f0f9afdb2946ec12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
"use strict";

((window) => {
  const core = window.Deno.core;

  function openPlugin(filename) {
    return core.jsonOpSync("op_open_plugin", { filename });
  }

  window.__bootstrap.plugins = {
    openPlugin,
  };
})(this);