@whatwg-node/server 0.10.7 → 0.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -315,8 +315,8 @@ function createServerAdapter(serverAdapterBaseObject, options) {
|
|
|
315
315
|
(serverAdapterBaseObject && prop in serverAdapterBaseObject));
|
|
316
316
|
},
|
|
317
317
|
get: (_, prop) => {
|
|
318
|
-
//
|
|
319
|
-
if (globalThis.Deno) {
|
|
318
|
+
// Somehow Deno and Node 24 don't like bound dispose functions
|
|
319
|
+
if (globalThis.Deno || prop === Symbol.asyncDispose || prop === Symbol.dispose) {
|
|
320
320
|
const adapterProp = Reflect.get(adapterObj, prop, adapterObj);
|
|
321
321
|
if (adapterProp) {
|
|
322
322
|
return adapterProp;
|
|
@@ -311,8 +311,8 @@ function createServerAdapter(serverAdapterBaseObject, options) {
|
|
|
311
311
|
(serverAdapterBaseObject && prop in serverAdapterBaseObject));
|
|
312
312
|
},
|
|
313
313
|
get: (_, prop) => {
|
|
314
|
-
//
|
|
315
|
-
if (globalThis.Deno) {
|
|
314
|
+
// Somehow Deno and Node 24 don't like bound dispose functions
|
|
315
|
+
if (globalThis.Deno || prop === Symbol.asyncDispose || prop === Symbol.dispose) {
|
|
316
316
|
const adapterProp = Reflect.get(adapterObj, prop, adapterObj);
|
|
317
317
|
if (adapterProp) {
|
|
318
318
|
return adapterProp;
|