Skip to content

Commit 76b0427

Browse files
committed
fixup! crypto: remove non-standard webcrypto.Crypto.prototype.CryptoKey
1 parent 8aea94d commit 76b0427

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/parallel/test-crypto-subtle-zero-length.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const crypto = require('crypto').webcrypto;
1515
{ name: 'AES-GCM' },
1616
false,
1717
[ 'encrypt', 'decrypt' ]);
18-
assert(k instanceof crypto.CryptoKey);
18+
assert(k instanceof CryptoKey);
1919

2020
const e = await crypto.subtle.encrypt({
2121
name: 'AES-GCM',

test/parallel/test-webcrypto-keygen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (!common.hasCrypto)
88
const assert = require('assert');
99
const { types: { isCryptoKey } } = require('util');
1010
const {
11-
webcrypto: { subtle, CryptoKey },
11+
webcrypto: { subtle },
1212
createSecretKey,
1313
} = require('crypto');
1414

0 commit comments

Comments
 (0)