summaryrefslogtreecommitdiff
path: root/runtime/js/40_plugins.js
blob: e9a3142b439a682ddbfa7358eea6cbb92557e460 (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.opSync("op_open_plugin", filename);
  }

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