From 91b606aaae23bcb790b55adc5fe70a182a37d564 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 25 Feb 2020 09:14:27 -0500 Subject: Clean up how we use opIds (#4118) --- cli/js/repl.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/js/repl.ts') diff --git a/cli/js/repl.ts b/cli/js/repl.ts index 813f0cb21..6e4f2545a 100644 --- a/cli/js/repl.ts +++ b/cli/js/repl.ts @@ -4,7 +4,6 @@ import { exit } from "./os.ts"; import { core } from "./core.ts"; import { formatError } from "./format_error.ts"; import { stringifyArgs } from "./console.ts"; -import * as dispatch from "./dispatch.ts"; import { sendSync, sendAsync } from "./dispatch_json.ts"; /** @@ -44,12 +43,12 @@ const replCommands = { }; function startRepl(historyFile: string): number { - return sendSync(dispatch.OP_REPL_START, { historyFile }); + return sendSync("op_repl_start", { historyFile }); } // @internal export async function readline(rid: number, prompt: string): Promise { - return sendAsync(dispatch.OP_REPL_READLINE, { rid, prompt }); + return sendAsync("op_repl_readline", { rid, prompt }); } // Error messages that allow users to continue input -- cgit v1.2.3