mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix(ext/node): remove unimplemented promiseHook stubs (#25979)
`temporalio` sdk [will try to
use](faa64225a7/packages/worker/src/workflow/vm-shared.ts (L199-L202)
)
promiseHook if it is found. This patch removes the unimplemented stubs.
```ts
if (promiseHooks) {
// Node >=16.14 only
this.stopPromiseHook = promiseHooks.createHook({
init: (promise: Promise<unknown>, parent: Promise<unknown>) => {
```
Fixes https://github.com/denoland/deno/issues/25977
This commit is contained in:
parent
3881b71734
commit
620e6b43a6
1 changed files with 0 additions and 15 deletions
|
@ -313,20 +313,6 @@ export class DefaultDeserializer extends Deserializer {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export const promiseHooks = {
|
|
||||||
onInit() {
|
|
||||||
notImplemented("v8.promiseHooks.onInit");
|
|
||||||
},
|
|
||||||
onSettled() {
|
|
||||||
notImplemented("v8.promiseHooks.onSetttled");
|
|
||||||
},
|
|
||||||
onBefore() {
|
|
||||||
notImplemented("v8.promiseHooks.onBefore");
|
|
||||||
},
|
|
||||||
createHook() {
|
|
||||||
notImplemented("v8.promiseHooks.createHook");
|
|
||||||
},
|
|
||||||
};
|
|
||||||
export default {
|
export default {
|
||||||
cachedDataVersionTag,
|
cachedDataVersionTag,
|
||||||
getHeapCodeStatistics,
|
getHeapCodeStatistics,
|
||||||
|
@ -343,5 +329,4 @@ export default {
|
||||||
Deserializer,
|
Deserializer,
|
||||||
DefaultSerializer,
|
DefaultSerializer,
|
||||||
DefaultDeserializer,
|
DefaultDeserializer,
|
||||||
promiseHooks,
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue