summaryrefslogtreecommitdiff
path: root/cli/js/repl.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/repl.ts')
-rw-r--r--cli/js/repl.ts5
1 files changed, 2 insertions, 3 deletions
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<string> {
- return sendAsync(dispatch.OP_REPL_READLINE, { rid, prompt });
+ return sendAsync("op_repl_readline", { rid, prompt });
}
// Error messages that allow users to continue input