1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 10:09:20 -05:00
denoland-deno/cli/js/ops/plugins.ts
Ryan Dahl 6e5f3453f8
Remove core/plugin.rs (#4824)
This simplifies the plugin interface in order to deliver op crates with a similar API
2020-04-20 10:27:15 -04:00

6 lines
175 B
TypeScript

import { sendSync } from "./dispatch_json.ts";
export function openPlugin(filename: string): number {
const rid = sendSync("op_open_plugin", { filename });
return rid;
}