aboutsummaryrefslogtreecommitdiff
path: root/src/js/out/modules_dev/node/repl.js.map
blob: 4d58c5027a9674c2a033f17925e2e399418157d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
{
  "version": 3,
  "sources": ["src/js/shared.ts", "src/js/node/repl.ts"],
  "sourcesContent": [
    "export class NotImplementedError extends Error {\n  code: string;\n  constructor(feature: string, issue?: number) {\n    super(\n      feature +\n        \" is not yet implemented in Bun.\" +\n        (issue ? \" Track the status & thumbs up the issue: https://github.com/oven-sh/bun/issues/\" + issue : \"\"),\n    );\n    this.name = \"NotImplementedError\";\n    this.code = \"ERR_NOT_IMPLEMENTED\";\n\n    // in the definition so that it isn't bundled unless used\n    hideFromStack(NotImplementedError);\n  }\n}\n\nexport function throwNotImplemented(feature: string, issue?: number): never {\n  // in the definition so that it isn't bundled unless used\n  hideFromStack(throwNotImplemented);\n\n  throw new NotImplementedError(feature, issue);\n}\n\nexport function hideFromStack(...fns) {\n  for (const fn of fns) {\n    Object.defineProperty(fn, \"name\", {\n      value: \"::bunternal::\",\n    });\n  }\n}\n",
  "// Hardcoded module \"node:repl\"\n// This is a stub! None of this is actually implemented yet.\n// It only exists to make some packages which import this module work.\nimport { throwNotImplemented } from \"../shared\";\n\nfunction REPLServer() {\n  throwNotImplemented(\"node:repl REPLServer\");\n}\n\nfunction Recoverable() {\n  throwNotImplemented(\"node:repl Recoverable\");\n}\n\nvar REPL_MODE_SLOPPY = 0,\n  REPL_MODE_STRICT = 1;\n\nfunction start() {\n  throwNotImplemented(\"node:repl\");\n}\n\nvar repl = {\n  [Symbol.for(\"CommonJS\")]: 0,\n  lines: [],\n  context: globalThis,\n  historyIndex: -1,\n  cursor: 0,\n  historySize: 1000,\n  removeHistoryDuplicates: false,\n  crlfDelay: 100,\n  completer: () => {\n    throwNotImplemented(\"node:repl\");\n  },\n  history: [],\n  _initialPrompt: \"> \",\n  terminal: true,\n  input: new Proxy(\n    {},\n    {\n      get() {\n        throwNotImplemented(\"node:repl\");\n      },\n      has: () => false,\n      ownKeys: () => [],\n      getOwnPropertyDescriptor: () => undefined,\n      set() {\n        throwNotImplemented(\"node:repl\");\n      },\n    },\n  ),\n  line: \"\",\n  eval: () => {\n    throwNotImplemented(\"node:repl\");\n  },\n  isCompletionEnabled: true,\n  escapeCodeTimeout: 500,\n  tabSize: 8,\n  breakEvalOnSigint: true,\n  useGlobal: true,\n  underscoreAssigned: false,\n  last: undefined,\n  _domain: undefined,\n  allowBlockingCompletions: false,\n  useColors: true,\n  output: new Proxy(\n    {},\n    {\n      get() {\n        throwNotImplemented(\"node:repl\");\n      },\n      has: () => false,\n      ownKeys: () => [],\n      getOwnPropertyDescriptor: () => undefined,\n      set() {\n        throwNotImplemented(\"node:repl\");\n      },\n    },\n  ),\n};\n\nexport { repl as default, repl, REPLServer, Recoverable, REPL_MODE_SLOPPY, REPL_MODE_STRICT, start };\n"
  ],
  "mappings": ";;A//////DAgBO,SAAS,mBAAmB,CAAC,SAAiB,OAAuB;AAI1E,QAFA,cAAc,mBAAmB,GAE3B,IAAI,oBAAoB,SAAS,KAAK;AAAA;AAGvC,SAAS,aAAa,IAAI,KAAK;AACpC,WAAW,MAAM;AACf,WAAO,eAAe,IAAI,QAAQ;AAAA,MAChC,OAAO;AAAA,IACT,CAAC;AAAA;AA3BE;AAAA,MAAM,4BAA4B,MAAM;AAAA,EAC7C;AAAA,EACA,WAAW,CAAC,SAAiB,OAAgB;AAC3C,UACE,UACE,qCACC,QAAQ,oFAAoF,QAAQ,GACzG;AACA,SAAK,OAAO,uBACZ,KAAK,OAAO,uBAGZ,cAAc,mBAAmB;AAAA;AAErC;;;A9/////DdKA,IAAS,qBAAU,GAAG;AACpB,sBAAoB,sBAAsB;AAAA,GAGnC,sBAAW,GAAG;AACrB,sBAAoB,uBAAuB;AAAA,GAMpC,gBAAK,GAAG;AACf,sBAAoB,WAAW;AAAA,GAJ7B,mBAAmB,GACrB,mBAAmB,GAMjB,OAAO;AAAA,GACR,OAAO,IAAI,UAA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