diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-08-04 14:30:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-04 14:30:48 +0200 |
| commit | 8d8a89ceea9edd5c1f3519769d4c1861e232719d (patch) | |
| tree | 64ec35958eef6ad83df279e075bdb490a16743cf /ext/node/polyfills | |
| parent | 5311f69bbbd169726330ddae20ce119624b8e8ca (diff) | |
fix(node): repl._builtinLibs (#20046)
Ref https://github.com/denoland/deno/issues/19733
Diffstat (limited to 'ext/node/polyfills')
| -rw-r--r-- | ext/node/polyfills/01_require.js | 2 | ||||
| -rw-r--r-- | ext/node/polyfills/repl.ts | 2 |
2 files changed, 3 insertions, 1 deletions
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, }; |
