diff options
Diffstat (limited to 'src/js/out/modules_dev/node/vm.js.map')
| -rw-r--r-- | src/js/out/modules_dev/node/vm.js.map | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/js/out/modules_dev/node/vm.js.map b/src/js/out/modules_dev/node/vm.js.map new file mode 100644 index 000000000..0f28d8862 --- /dev/null +++ b/src/js/out/modules_dev/node/vm.js.map @@ -0,0 +1,11 @@ +{ + "version": 3, + "sources": ["src/js/shared.ts", "src/js/node/vm.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:vm\"\nimport { throwNotImplemented } from \"../shared\";\n\nconst lazy = globalThis[Symbol.for(\"Bun.lazy\")];\nif (!lazy || typeof lazy !== \"function\") {\n throw new Error(\"Something went wrong while loading Bun. Expected 'Bun.lazy' to be defined.\");\n}\nconst vm = lazy(\"vm\");\n\nconst { createContext, isContext, Script, runInNewContext, runInThisContext } = vm;\n\nfunction runInContext(code, context, options) {\n return new Script(code, options).runInContext(context);\n}\n\nfunction compileFunction() {\n throwNotImplemented(\"node:vm compileFunction\", 401);\n}\nfunction measureMemory() {\n throwNotImplemented(\"node:vm measureMemory\", 401);\n}\n\nconst defaultObject = {\n createContext,\n runInContext,\n runInNewContext,\n runInThisContext,\n isContext,\n compileFunction,\n measureMemory,\n Script,\n [Symbol.for(\"CommonJS\")]: 0,\n};\n\nexport {\n defaultObject as default,\n createContext,\n runInContext,\n runInNewContext,\n runInThisContext,\n isContext,\n compileFunction,\n measureMemory,\n Script,\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/////DdWA,IAAS,uBAAY,CAAC,MAAM,SAAS,SAAS;AAC5C,SAAO,IAAI,OAAO,MAAM,OAAO,EAAE,aAAa,OAAO;AAAA,GAG9C,0BAAe,GAAG;AACzB,sBAAoB,2BAA2B,GAAG;AAAA,GAE3C,wBAAa,GAAG;AACvB,sBAAoB,yBAAyB,GAAG;AAAA,GAhB5C,OAAO,WAAW,OAAO,IAAI,UAAU;AAC7C,KAAK,eAAe,SAAS;AAC3B,QAAM,IAAI,MAAM,4EAA4E;AAE9F,IAAM,KAAK,KAAK,IAAI,KAEZ,eAAe,WAAW,QAAQ,iBAAiB,qBAAqB,IAa1E,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,GACC,OAAO,IAAI,UAAU,IAAI;AAC5B;", + "debugId": "FC9E23DEAFC8A97364756e2164756e21", + "names": [] +}
\ No newline at end of file |
