Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! crypto: rename KeyObject.from to fromCryptoKey
  • Loading branch information
tniessen committed Feb 6, 2021
commit 6a7a614696e1eaf0a36be6777d49d186a7fffa14
4 changes: 0 additions & 4 deletions lib/internal/crypto/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ const [
}

static from(key) {
return KeyObject.fromCryptoKey(key);
}

static fromCryptoKey(key) {
if (!isCryptoKey(key))
throw new ERR_INVALID_ARG_TYPE('key', 'CryptoKey', key);
return key[kKeyObject];
Expand Down