From 56ba7f3c233fcf8c9478314956c70725179ed16f Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Thu, 2 May 2024 12:10:22 +0530 Subject: fix(ext/node): support delete process.env.var (#23647) Closes https://github.com/denoland/deno/issues/23641 --- ext/node/polyfills/_process/process.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/node') diff --git a/ext/node/polyfills/_process/process.ts b/ext/node/polyfills/_process/process.ts index 57450a521..046169b08 100644 --- a/ext/node/polyfills/_process/process.ts +++ b/ext/node/polyfills/_process/process.ts @@ -88,6 +88,10 @@ export const env: InstanceType & Record = return true; // success }, has: (_target, prop) => typeof denoEnvGet(String(prop)) === "string", + deleteProperty(_target, key) { + Deno.env.delete(String(key)); + return true; + }, }); /** -- cgit v1.2.3