diff options
Diffstat (limited to 'src/js/node/repl.ts')
-rw-r--r-- | src/js/node/repl.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/js/node/repl.ts b/src/js/node/repl.ts index 33065e2ed..ff1474a47 100644 --- a/src/js/node/repl.ts +++ b/src/js/node/repl.ts @@ -1,7 +1,7 @@ // Hardcoded module "node:repl" // This is a stub! None of this is actually implemented yet. // It only exists to make some packages which import this module work. -import { throwNotImplemented } from "../shared"; +const { throwNotImplemented } = require("$shared"); function REPLServer() { throwNotImplemented("node:repl REPLServer"); @@ -18,8 +18,7 @@ function start() { throwNotImplemented("node:repl"); } -var repl = { - [Symbol.for("CommonJS")]: 0, +export default { lines: [], context: globalThis, historyIndex: -1, @@ -76,5 +75,3 @@ var repl = { }, ), }; - -export { repl as default, repl, REPLServer, Recoverable, REPL_MODE_SLOPPY, REPL_MODE_STRICT, start }; |