diff options
author | 2023-06-03 00:36:05 -0400 | |
---|---|---|
committer | 2023-06-02 21:36:05 -0700 | |
commit | cfd73cec816cb73e0017cf306e133a7b0e5ae4eb (patch) | |
tree | b628d48e6962f9e71e3b9b75884f684d8297e180 /src/js/out/modules_dev/node/repl.js | |
parent | 3e437a6ae0d4a68f8f29c60276918d662ad7bbc7 (diff) | |
download | bun-cfd73cec816cb73e0017cf306e133a7b0e5ae4eb.tar.gz bun-cfd73cec816cb73e0017cf306e133a7b0e5ae4eb.tar.zst bun-cfd73cec816cb73e0017cf306e133a7b0e5ae4eb.zip |
fixes with hardcoded modules (#3182)
* fixes with hardcoded modules
* add make hardcoded to make dev
* adjust this message
* remove debugging logs
* this
* restore2
Diffstat (limited to 'src/js/out/modules_dev/node/repl.js')
-rw-r--r-- | src/js/out/modules_dev/node/repl.js | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/src/js/out/modules_dev/node/repl.js b/src/js/out/modules_dev/node/repl.js deleted file mode 100644 index 849858f87..000000000 --- a/src/js/out/modules_dev/node/repl.js +++ /dev/null @@ -1,92 +0,0 @@ -function throwNotImplemented(feature, issue) { - throw hideFromStack(throwNotImplemented), new NotImplementedError(feature, issue); -} -function hideFromStack(...fns) { - for (let fn of fns) - Object.defineProperty(fn, "name", { - value: "::bunternal::" - }); -} - -class NotImplementedError extends Error { - code; - constructor(feature, issue) { - super(feature + " is not yet implemented in Bun." + (issue ? " Track the status & thumbs up the issue: https://github.com/oven-sh/bun/issues/" + issue : "")); - this.name = "NotImplementedError", this.code = "ERR_NOT_IMPLEMENTED", hideFromStack(NotImplementedError); - } -} - -// src/js/node/repl.ts -var REPLServer = function() { - throwNotImplemented("node:repl REPLServer"); -}, Recoverable = function() { - throwNotImplemented("node:repl Recoverable"); -}, start = function() { - throwNotImplemented("node:repl"); -}, REPL_MODE_SLOPPY = 0, REPL_MODE_STRICT = 1, repl = { - [Symbol.for("CommonJS")]: 0, - lines: [], - context: globalThis, - historyIndex: -1, - cursor: 0, - historySize: 1000, - removeHistoryDuplicates: !1, - crlfDelay: 100, - completer: () => { - throwNotImplemented("node:repl"); - }, - history: [], - _initialPrompt: "> ", - terminal: !0, - input: new Proxy({}, { - get() { - throwNotImplemented("node:repl"); - }, - has: () => !1, - ownKeys: () => [], - getOwnPropertyDescriptor: () => { - return; - }, - set() { - throwNotImplemented("node:repl"); - } - }), - line: "", - eval: () => { - throwNotImplemented("node:repl"); - }, - isCompletionEnabled: !0, - escapeCodeTimeout: 500, - tabSize: 8, - breakEvalOnSigint: !0, - useGlobal: !0, - underscoreAssigned: !1, - last: void 0, - _domain: void 0, - allowBlockingCompletions: !1, - useColors: !0, - output: new Proxy({}, { - get() { - throwNotImplemented("node:repl"); - }, - has: () => !1, - ownKeys: () => [], - getOwnPropertyDescriptor: () => { - return; - }, - set() { - throwNotImplemented("node:repl"); - } - }) -}; -export { - start, - repl, - repl as default, - Recoverable, - REPL_MODE_STRICT, - REPL_MODE_SLOPPY, - REPLServer -}; - -//# debugId=4E39AF2B5A08603C64756e2164756e21 |