1
2
3
4
5
6
7
8
9
10
11
|
{
"version": 3,
"sources": ["src/js/shared.ts", "src/js/node/perf_hooks.js"],
"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:perf_hooks\"\nimport { throwNotImplemented } from \"../shared\";\n\nexport var performance = globalThis.performance;\n\nexport class PerformanceObserver {\n constructor() {\n throwNotImplemented(\"PerformanceObserver\");\n }\n}\n\nexport class PerformanceEntry {\n constructor() {\n throwNotImplemented(\"PerformanceEntry\");\n }\n}\nexport class PerformanceNodeTiming {\n constructor() {\n throw new Error(\"PerformanceNodeTiming is not supported in this environment.\");\n }\n}\n\nexport default {\n performance,\n PerformanceEntry,\n PerformanceNodeTiming,\n [Symbol.for(\"CommonJS\")]: 0,\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,SAAiB,OAAgB;AAC3C,UACE,UACE,qCACC,QAAQ,oFAAoF,QAAQ,GACzG;AACA,SAAK,OAAO,uBACZ,KAAK,OAAO,uBAGZ,cAAc,mBAAmB;AAAA;AAErC;;;A9/////DdGO,IAAI,cAAc,WAAW;AAE7B;AAAA,MAAM,oBAAoB;AAAA,EAC/B,WAAW,GAAG;AACZ,wBAAoB,qBAAqB;AAAA;AAE7C;AAEO;AAAA,MAAM,iBAAiB;AAAA,EAC5B,WAAW,GAAG;AACZ,wBAAoB,kBAAkB;AAAA;AAE1C;AACO;AAAA,MAAM,sBAAsB;AAAA,EACjC,WAAW,GAAG;AACZ,UAAM,IAAI,MAAM,6DAA6D;AAAA;AAEjF;AAEA,IAToB;AAAA,EAUlB;AAAA,EACA;AAAA,EACA;AAAA,GACC,OAAO,IAAI,UAAU,IAAI;AAC5B;",
"debugId": "D961496BC6C9612064756e2164756e21",
"names": []
}
|