From 8d8a89ceea9edd5c1f3519769d4c1861e232719d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 4 Aug 2023 14:30:48 +0200 Subject: fix(node): repl._builtinLibs (#20046) Ref https://github.com/denoland/deno/issues/19733 --- ext/node/polyfills/01_require.js | 2 +- ext/node/polyfills/repl.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/node/polyfills') diff --git a/ext/node/polyfills/01_require.js b/ext/node/polyfills/01_require.js index acdf8402f..092e7490a 100644 --- a/ext/node/polyfills/01_require.js +++ b/ext/node/polyfills/01_require.js @@ -110,7 +110,7 @@ import process from "node:process"; import querystring from "node:querystring"; import readline from "node:readline"; import readlinePromises from "ext:deno_node/readline/promises.ts"; -import repl from "ext:deno_node/repl.ts"; +import repl from "node:repl"; import stream from "node:stream"; import streamConsumers from "node:stream/consumers"; import streamPromises from "node:stream/promises"; diff --git a/ext/node/polyfills/repl.ts b/ext/node/polyfills/repl.ts index 8a57ce24c..914071ef7 100644 --- a/ext/node/polyfills/repl.ts +++ b/ext/node/polyfills/repl.ts @@ -52,11 +52,13 @@ export const builtinModules = [ "worker_threads", "zlib", ]; +export const _builtinLibs = builtinModules; export function start() { notImplemented("repl.start"); } export default { REPLServer, builtinModules, + _builtinLibs, start, }; -- cgit v1.2.3