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, 2 insertions, 2 deletions
diff --git a/ext/node/polyfills/_process/process.ts b/ext/node/polyfills/_process/process.ts
index e4b88a11a..6f69139c9 100644
--- a/ext/node/polyfills/_process/process.ts
+++ b/ext/node/polyfills/_process/process.ts
@@ -53,8 +53,8 @@ function denoEnvGet(name: string) {
} catch (e) {
if (
ObjectPrototypeIsPrototypeOf(TypeErrorPrototype, e) ||
- // TODO(iuioiua): Use `PermissionDeniedPrototype` when it's available
- ObjectPrototypeIsPrototypeOf(Deno.errors.PermissionDenied.prototype, e)
+ // TODO(iuioiua): Use `NotCapablePrototype` when it's available
+ ObjectPrototypeIsPrototypeOf(Deno.errors.NotCapable.prototype, e)
) {
return undefined;
}