diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-25 09:14:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 09:14:27 -0500 |
commit | 91b606aaae23bcb790b55adc5fe70a182a37d564 (patch) | |
tree | 16b56a21ffcb3991569eda984fbd14073bdbd3ae /cli/js/plugins.ts | |
parent | 805992b14a65a6dbfb857dea6d9b657477de043d (diff) |
Clean up how we use opIds (#4118)
Diffstat (limited to 'cli/js/plugins.ts')
-rw-r--r-- | cli/js/plugins.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/js/plugins.ts b/cli/js/plugins.ts index 4d2072c79..44a3083bb 100644 --- a/cli/js/plugins.ts +++ b/cli/js/plugins.ts @@ -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); |