mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
Clean up how we use opIds (#4118)
This commit is contained in:
parent
805992b14a
commit
91b606aaae
74 changed files with 367 additions and 589 deletions
|
@ -1,5 +1,4 @@
|
|||
import { sendSync } from "./dispatch_json.ts";
|
||||
import { OP_OPEN_PLUGIN } from "./dispatch.ts";
|
||||
import { core } from "./core.ts";
|
||||
|
||||
export interface AsyncHandler {
|
||||
|
@ -59,7 +58,7 @@ interface OpenPluginResponse {
|
|||
}
|
||||
|
||||
export function openPlugin(filename: string): Plugin {
|
||||
const response: OpenPluginResponse = sendSync(OP_OPEN_PLUGIN, {
|
||||
const response: OpenPluginResponse = sendSync("op_open_plugin", {
|
||||
filename
|
||||
});
|
||||
return new PluginImpl(response.rid, response.ops);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue