We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ba1683 commit 4fa07a9Copy full SHA for 4fa07a9
packages/runtime/src/Context.ts
@@ -92,15 +92,19 @@ class NodejsWaitingRequestCounter {
92
93
public increase (): void {
94
if (this.count === 0) {
95
- this.refHandle.ref()
+ if (this.refHandle.ref) {
96
+ this.refHandle.ref()
97
+ }
98
}
99
this.count++
100
101
102
public decrease (): void {
103
if (this.count === 0) return
104
if (this.count === 1) {
- this.refHandle.unref()
105
+ if (this.refHandle.unref) {
106
+ this.refHandle.unref()
107
108
109
this.count--
110
0 commit comments