diff options
author | Satya Rohith <me@satyarohith.com> | 2024-05-02 12:10:22 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 06:40:22 +0000 |
commit | 56ba7f3c233fcf8c9478314956c70725179ed16f (patch) | |
tree | 904968feb205676c89ed6212b35f375960034af5 /ext/node/polyfills/_process/process.ts | |
parent | 66b66de96a78af6162e581c2986e3ef4ec8733c4 (diff) |
fix(ext/node): support delete process.env.var (#23647)
Closes https://github.com/denoland/deno/issues/23641
Diffstat (limited to 'ext/node/polyfills/_process/process.ts')
-rw-r--r-- | ext/node/polyfills/_process/process.ts | 4 |
1 files changed, 4 insertions, 0 deletions
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<ObjectConstructor> & Record<string, string> = return true; // success }, has: (_target, prop) => typeof denoEnvGet(String(prop)) === "string", + deleteProperty(_target, key) { + Deno.env.delete(String(key)); + return true; + }, }); /** |