summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/_process/process.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/_process/process.ts')
-rw-r--r--ext/node/polyfills/_process/process.ts4
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;
+ },
});
/**