Add Deno.Err change missing from previous commit (#4113)

This commit is contained in:
Ryan Dahl 2020-02-24 16:36:12 -05:00 committed by GitHub
parent e1687c0a46
commit f4fd433e1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -326,7 +326,7 @@ testPerm({ env: false }, function releasePerm(): void {
Deno.osRelease();
} catch (err) {
caughtError = true;
assert(err instanceof Deno.Err.PermissionDenied);
assert(err instanceof Deno.errors.PermissionDenied);
assertEquals(err.name, "PermissionDenied");
}
assert(caughtError);