diff --git a/src/js/node/v8.ts b/src/js/node/v8.ts index ada998d747c75..a902f822e9594 100644 --- a/src/js/node/v8.ts +++ b/src/js/node/v8.ts @@ -98,29 +98,12 @@ function writeHeapSnapshot() { function setHeapSnapshotNearHeapLimit() { notimpl("setHeapSnapshotNearHeapLimit"); } -const 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"), - }; +const startupSnapshot = { + addDeserializeCallback: () => notimpl("addDeserializeCallback"), + addSerializeCallback: () => notimpl("addSerializeCallback"), + setDeserializeMainFunction: () => notimpl("setDeserializeMainFunction"), + isBuildingSnapshot: () => notimpl("isBuildingSnapshot"), +}; export default { cachedDataVersionTag, @@ -135,7 +118,6 @@ export default { serialize, writeHeapSnapshot, setHeapSnapshotNearHeapLimit, - promiseHooks, startupSnapshot, Deserializer, Serializer,