From 76b0427fbf8db03291f882c2b07c5d5fc03220ff Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 4 Jun 2022 13:42:25 +0200 Subject: [PATCH] fixup! crypto: remove non-standard `webcrypto.Crypto.prototype.CryptoKey` --- test/parallel/test-crypto-subtle-zero-length.js | 2 +- test/parallel/test-webcrypto-keygen.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-crypto-subtle-zero-length.js b/test/parallel/test-crypto-subtle-zero-length.js index ffca84cf56129e..544374b7482a83 100644 --- a/test/parallel/test-crypto-subtle-zero-length.js +++ b/test/parallel/test-crypto-subtle-zero-length.js @@ -15,7 +15,7 @@ const crypto = require('crypto').webcrypto; { name: 'AES-GCM' }, false, [ 'encrypt', 'decrypt' ]); - assert(k instanceof crypto.CryptoKey); + assert(k instanceof CryptoKey); const e = await crypto.subtle.encrypt({ name: 'AES-GCM', diff --git a/test/parallel/test-webcrypto-keygen.js b/test/parallel/test-webcrypto-keygen.js index 17f6924caec286..88cfbab7480cae 100644 --- a/test/parallel/test-webcrypto-keygen.js +++ b/test/parallel/test-webcrypto-keygen.js @@ -8,7 +8,7 @@ if (!common.hasCrypto) const assert = require('assert'); const { types: { isCryptoKey } } = require('util'); const { - webcrypto: { subtle, CryptoKey }, + webcrypto: { subtle }, createSecretKey, } = require('crypto');