1
2
3
4
5
6
7
8
9
10
11
12
|
{
"version": 3,
"sources": ["src/js/shared.ts", "src/js/node/v8.ts", "src/js/node/v8.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:v8\"\n// This is a stub! None of this is actually implemented yet.\nimport { hideFromStack, throwNotImplemented } from \"../shared\";\n\nfunction notimpl(message) {\n throwNotImplemented(\"node:v8 \" + message);\n}\n\nclass Deserializer {\n constructor() {\n notimpl(\"Deserializer\");\n }\n}\nclass Serializer {\n constructor() {\n notimpl(\"Serializer\");\n }\n}\nclass DefaultDeserializer extends Deserializer {}\nclass DefaultSerializer extends Serializer {}\nclass GCProfiler {\n constructor() {\n notimpl(\"GCProfiler\");\n }\n}\n\nfunction cachedDataVersionTag() {\n notimpl(\"cachedDataVersionTag\");\n}\nfunction getHeapSnapshot() {\n notimpl(\"getHeapSnapshot\");\n}\nfunction getHeapStatistics() {\n notimpl(\"getHeapStatistics\");\n}\nfunction getHeapSpaceStatistics() {\n notimpl(\"getHeapSpaceStatistics\");\n}\nfunction getHeapCodeStatistics() {\n notimpl(\"getHeapCodeStatistics\");\n}\nfunction setFlagsFromString() {\n notimpl(\"setFlagsFromString\");\n}\nfunction deserialize() {\n notimpl(\"deserialize\");\n}\nfunction takeCoverage() {\n notimpl(\"takeCoverage\");\n}\nfunction stopCoverage() {\n notimpl(\"stopCoverage\");\n}\nfunction serialize() {\n notimpl(\"serialize\");\n}\nfunction writeHeapSnapshot() {\n notimpl(\"writeHeapSnapshot\");\n}\nfunction setHeapSnapshotNearHeapLimit() {\n notimpl(\"setHeapSnapshotNearHeapLimit\");\n}\nconst promiseHooks = {\n createHook: () => {\n notimpl(\"createHook\");\n },\n onInit: () => {\n notimpl(\"onInit\");\n },\n onBefore: () => {\n notimpl(\"onBefore\");\n },\n onAfter: () => {\n notimpl(\"onAfter\");\n },\n onSettled: () => {\n notimpl(\"onSettled\");\n },\n },\n startupSnapshot = {\n addDeserializeCallback: () => notimpl(\"addDeserializeCallback\"),\n addSerializeCallback: () => notimpl(\"addSerializeCallback\"),\n setDeserializeMainFunction: () => notimpl(\"setDeserializeMainFunction\"),\n isBuildingSnapshot: () => notimpl(\"isBuildingSnapshot\"),\n };\n\nconst defaultObject = {\n cachedDataVersionTag,\n getHeapSnapshot,\n getHeapStatistics,\n getHeapSpaceStatistics,\n getHeapCodeStatistics,\n setFlagsFromString,\n deserialize,\n takeCoverage,\n stopCoverage,\n serialize,\n writeHeapSnapshot,\n setHeapSnapshotNearHeapLimit,\n promiseHooks,\n startupSnapshot,\n Deserializer,\n Serializer,\n [Symbol.for(\"CommonJS\")]: 0,\n};\n\nexport {\n cachedDataVersionTag,\n getHeapSnapshot,\n getHeapStatistics,\n getHeapSpaceStatistics,\n getHeapCodeStatistics,\n setFlagsFromString,\n deserialize,\n takeCoverage,\n stopCoverage,\n serialize,\n writeHeapSnapshot,\n setHeapSnapshotNearHeapLimit,\n promiseHooks,\n startupSnapshot,\n Deserializer,\n Serializer,\n DefaultDeserializer,\n DefaultSerializer,\n GCProfiler,\n defaultObject as default,\n};\n\nhideFromStack(\n notimpl,\n cachedDataVersionTag,\n getHeapSnapshot,\n getHeapStatistics,\n getHeapSpaceStatistics,\n getHeapCodeStatistics,\n setFlagsFromString,\n deserialize,\n takeCoverage,\n stopCoverage,\n serialize,\n writeHeapSnapshot,\n setHeapSnapshotNearHeapLimit,\n Deserializer,\n Serializer,\n DefaultDeserializer,\n DefaultSerializer,\n GCProfiler,\n);\n",
"// Hardcoded module \"node:v8\"\n// This is a stub! None of this is actually implemented yet.\nimport { hideFromStack, throwNotImplemented } from \"../shared\";\n\nfunction notimpl(message) {\n throwNotImplemented(\"node:v8 \" + message);\n}\n\nclass Deserializer {\n constructor() {\n notimpl(\"Deserializer\");\n }\n}\nclass Serializer {\n constructor() {\n notimpl(\"Serializer\");\n }\n}\nclass DefaultDeserializer extends Deserializer {}\nclass DefaultSerializer extends Serializer {}\nclass GCProfiler {\n constructor() {\n notimpl(\"GCProfiler\");\n }\n}\n\nfunction cachedDataVersionTag() {\n notimpl(\"cachedDataVersionTag\");\n}\nfunction getHeapSnapshot() {\n notimpl(\"getHeapSnapshot\");\n}\nfunction getHeapStatistics() {\n notimpl(\"getHeapStatistics\");\n}\nfunction getHeapSpaceStatistics() {\n notimpl(\"getHeapSpaceStatistics\");\n}\nfunction getHeapCodeStatistics() {\n notimpl(\"getHeapCodeStatistics\");\n}\nfunction setFlagsFromString() {\n notimpl(\"setFlagsFromString\");\n}\nfunction deserialize() {\n notimpl(\"deserialize\");\n}\nfunction takeCoverage() {\n notimpl(\"takeCoverage\");\n}\nfunction stopCoverage() {\n notimpl(\"stopCoverage\");\n}\nfunction serialize() {\n notimpl(\"serialize\");\n}\nfunction writeHeapSnapshot() {\n notimpl(\"writeHeapSnapshot\");\n}\nfunction setHeapSnapshotNearHeapLimit() {\n notimpl(\"setHeapSnapshotNearHeapLimit\");\n}\nconst promiseHooks = {\n createHook: () => {\n notimpl(\"createHook\");\n },\n onInit: () => {\n notimpl(\"onInit\");\n },\n onBefore: () => {\n notimpl(\"onBefore\");\n },\n onAfter: () => {\n notimpl(\"onAfter\");\n },\n onSettled: () => {\n notimpl(\"onSettled\");\n },\n },\n startupSnapshot = {\n addDeserializeCallback: () => notimpl(\"addDeserializeCallback\"),\n addSerializeCallback: () => notimpl(\"addSerializeCallback\"),\n setDeserializeMainFunction: () => notimpl(\"setDeserializeMainFunction\"),\n isBuildingSnapshot: () => notimpl(\"isBuildingSnapshot\"),\n };\n\nconst defaultObject = {\n cachedDataVersionTag,\n getHeapSnapshot,\n getHeapStatistics,\n getHeapSpaceStatistics,\n getHeapCodeStatistics,\n setFlagsFromString,\n deserialize,\n takeCoverage,\n stopCoverage,\n serialize,\n writeHeapSnapshot,\n setHeapSnapshotNearHeapLimit,\n promiseHooks,\n startupSnapshot,\n Deserializer,\n Serializer,\n [Symbol.for(\"CommonJS\")]: 0,\n};\n\nexport {\n cachedDataVersionTag,\n getHeapSnapshot,\n getHeapStatistics,\n getHeapSpaceStatistics,\n getHeapCodeStatistics,\n setFlagsFromString,\n deserialize,\n takeCoverage,\n stopCoverage,\n serialize,\n writeHeapSnapshot,\n setHeapSnapshotNearHeapLimit,\n promiseHooks,\n startupSnapshot,\n Deserializer,\n Serializer,\n DefaultDeserializer,\n DefaultSerializer,\n GCProfiler,\n defaultObject as default,\n};\n\nhideFromStack(\n notimpl,\n cachedDataVersionTag,\n getHeapSnapshot,\n getHeapStatistics,\n getHeapSpaceStatistics,\n getHeapCodeStatistics,\n setFlagsFromString,\n deserialize,\n takeCoverage,\n stopCoverage,\n serialize,\n writeHeapSnapshot,\n setHeapSnapshotNearHeapLimit,\n Deserializer,\n Serializer,\n DefaultDeserializer,\n DefaultSerializer,\n GCProfiler,\n);\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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