Skip to content
Merged
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
Next Next commit
crypto: fix webcrpto.subtle signature
  • Loading branch information
aduh95 committed Jan 29, 2022
commit e552e64f2c3b799f7cf2aa95d94d1f369fd999dd
11 changes: 5 additions & 6 deletions lib/internal/crypto/webcrypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,11 @@ async function decrypt(algorithm, key, data) {
class SubtleCrypto {}
const subtle = new SubtleCrypto();

class Crypto {}
class Crypto {
get subtle() {
return subtle;
}
}
const crypto = new Crypto();

ObjectDefineProperties(
Expand All @@ -698,11 +702,6 @@ ObjectDefineProperties(
writable: false,
value: 'Crypto',
},
subtle: {
enumerable: true,
configurable: false,
value: subtle,
},
getRandomValues: {
enumerable: true,
configurable: true,
Expand Down