Skip to content

Commit

Permalink
fixup! crypto: refactor to avoid unsafe array iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored Feb 16, 2021
1 parent 2e0fc49 commit 4384da5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/internal/crypto/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ const [
constructor(type, handle) {
super(type, handle);
}

get asymmetricKeyType() {
return this[kAsymmetricKeyType] ||
(this[kAsymmetricKeyType] = this[kHandle].getAsymmetricKeyType());
Expand Down

0 comments on commit 4384da5

Please sign in to comment.