summaryrefslogtreecommitdiff
path: root/std/node
diff options
context:
space:
mode:
Diffstat (limited to 'std/node')
-rw-r--r--std/node/module.ts2
-rw-r--r--std/node/process_test.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/std/node/module.ts b/std/node/module.ts
index aecf03ede..3520d804b 100644
--- a/std/node/module.ts
+++ b/std/node/module.ts
@@ -57,7 +57,7 @@ function stat(filename: string): StatResult {
if (statCache !== null) statCache.set(filename, result);
return result;
} catch (e) {
- if (e instanceof Deno.Err.PermissionDenied) {
+ if (e instanceof Deno.errors.PermissionDenied) {
throw new Error("CJS loader requires --allow-read.");
}
return -1;
diff --git a/std/node/process_test.ts b/std/node/process_test.ts
index 545b6ce23..f44143acb 100644
--- a/std/node/process_test.ts
+++ b/std/node/process_test.ts
@@ -24,7 +24,7 @@ test({
() => {
process.chdir("non-existent-directory-name");
},
- Deno.Err.NotFound,
+ Deno.errors.NotFound,
"file"
// On every OS Deno returns: "No such file" except for Windows, where it's:
// "The system cannot find the file specified. (os error 2)" so "file" is