diff options
Diffstat (limited to 'src/js/out/modules_dev/node/v8.js')
-rw-r--r-- | src/js/out/modules_dev/node/v8.js | 141 |
1 files changed, 0 insertions, 141 deletions
diff --git a/src/js/out/modules_dev/node/v8.js b/src/js/out/modules_dev/node/v8.js deleted file mode 100644 index 22d24d5b9..000000000 --- a/src/js/out/modules_dev/node/v8.js +++ /dev/null @@ -1,141 +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/v8.ts -var notimpl = function(message) { - throwNotImplemented("node:v8 " + message); -}, cachedDataVersionTag = function() { - notimpl("cachedDataVersionTag"); -}, getHeapSnapshot = function() { - notimpl("getHeapSnapshot"); -}, getHeapStatistics = function() { - notimpl("getHeapStatistics"); -}, getHeapSpaceStatistics = function() { - notimpl("getHeapSpaceStatistics"); -}, getHeapCodeStatistics = function() { - notimpl("getHeapCodeStatistics"); -}, setFlagsFromString = function() { - notimpl("setFlagsFromString"); -}, deserialize = function() { - notimpl("deserialize"); -}, takeCoverage = function() { - notimpl("takeCoverage"); -}, stopCoverage = function() { - notimpl("stopCoverage"); -}, serialize = function() { - notimpl("serialize"); -}, writeHeapSnapshot = function() { - notimpl("writeHeapSnapshot"); -}, setHeapSnapshotNearHeapLimit = function() { - notimpl("setHeapSnapshotNearHeapLimit"); -}; - -class Deserializer { - constructor() { - notimpl("Deserializer"); - } -} - -class Serializer { - constructor() { - notimpl("Serializer"); - } -} - -class DefaultDeserializer extends Deserializer { - constructor() { - super(...arguments); - } -} - -class DefaultSerializer extends Serializer { - constructor() { - super(...arguments); - } -} - -class GCProfiler { - constructor() { - notimpl("GCProfiler"); - } -} -var promiseHooks = { - createHook: () => { - notimpl("createHook"); - }, - onInit: () => { - notimpl("onInit"); - }, - onBefore: () => { - notimpl("onBefore"); - }, - onAfter: () => { - notimpl("onAfter"); - }, - onSettled: () => { - notimpl("onSettled"); - } -}, startupSnapshot = { - addDeserializeCallback: () => notimpl("addDeserializeCallback"), - addSerializeCallback: () => notimpl("addSerializeCallback"), - setDeserializeMainFunction: () => notimpl("setDeserializeMainFunction"), - isBuildingSnapshot: () => notimpl("isBuildingSnapshot") -}, defaultObject = { - cachedDataVersionTag, - getHeapSnapshot, - getHeapStatistics, - getHeapSpaceStatistics, - getHeapCodeStatistics, - setFlagsFromString, - deserialize, - takeCoverage, - stopCoverage, - serialize, - writeHeapSnapshot, - setHeapSnapshotNearHeapLimit, - promiseHooks, - startupSnapshot, - Deserializer, - Serializer, - [Symbol.for("CommonJS")]: 0 -}; -hideFromStack(notimpl, cachedDataVersionTag, getHeapSnapshot, getHeapStatistics, getHeapSpaceStatistics, getHeapCodeStatistics, setFlagsFromString, deserialize, takeCoverage, stopCoverage, serialize, writeHeapSnapshot, setHeapSnapshotNearHeapLimit, Deserializer, Serializer, DefaultDeserializer, DefaultSerializer, GCProfiler); -export { - writeHeapSnapshot, - takeCoverage, - stopCoverage, - startupSnapshot, - setHeapSnapshotNearHeapLimit, - setFlagsFromString, - serialize, - promiseHooks, - getHeapStatistics, - getHeapSpaceStatistics, - getHeapSnapshot, - getHeapCodeStatistics, - deserialize, - defaultObject as default, - cachedDataVersionTag, - Serializer, - GCProfiler, - Deserializer, - DefaultSerializer, - DefaultDeserializer -}; - -//# debugId=B5A9E31C4E09386D64756e2164756e21 |