summaryrefslogtreecommitdiff
path: root/cli/rt/40_repl.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-17 18:09:50 +0200
committerGitHub <noreply@github.com>2020-09-17 18:09:50 +0200
commitbda937938550a0969588a6878d2fb6d72c17b22d (patch)
treecad613f3e6ec0dcc545a08e8ec394b599425babd /cli/rt/40_repl.js
parent3421f4dbbd5cabb3a0866ebb3b8aeae5b62730ef (diff)
refactor: move op_resources and op_close to deno_core (#7539)
Moves op_close and op_resources to deno_core::ops and exports them. Adds serde dependency to deno_core and reexports it. Moves JS implementation of those ops to Deno.core and reexports them in Deno.
Diffstat (limited to 'cli/rt/40_repl.js')
-rw-r--r--cli/rt/40_repl.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/rt/40_repl.js b/cli/rt/40_repl.js
index 8b05aa4c3..273687d93 100644
--- a/cli/rt/40_repl.js
+++ b/cli/rt/40_repl.js
@@ -4,7 +4,6 @@
const core = window.Deno.core;
const exit = window.__bootstrap.os.exit;
const version = window.__bootstrap.version.version;
- const close = window.__bootstrap.resources.close;
const inspectArgs = window.__bootstrap.console.inspectArgs;
function opStartRepl(historyFile) {
@@ -90,7 +89,7 @@
const quitRepl = (exitCode) => {
// Special handling in case user calls deno.close(3).
try {
- close(rid); // close signals Drop on REPL and saves history.
+ core.close(rid); // close signals Drop on REPL and saves history.
} catch {}
exit(exitCode);
};