From 391bf17479dbc087e0e7dde65f8b353f5089486c Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 9 Jul 2021 20:34:50 +0530 Subject: chore(extensions/crypto): enable WPT stringification test (#11336) --- extensions/crypto/00_crypto.js | 4 ++++ tools/wpt/expectation.json | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/crypto/00_crypto.js b/extensions/crypto/00_crypto.js index 5310f254d..936bf7cff 100644 --- a/extensions/crypto/00_crypto.js +++ b/extensions/crypto/00_crypto.js @@ -464,6 +464,10 @@ return result; } + + get [SymbolToStringTag]() { + return "SubtleCrypto"; + } } async function generateKey(normalizedAlgorithm, extractable, usages) { diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index 979d02d63..f183bb866 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -1928,7 +1928,6 @@ "SubtleCrypto interface: operation exportKey(KeyFormat, CryptoKey)", "SubtleCrypto interface: operation wrapKey(KeyFormat, CryptoKey, CryptoKey, AlgorithmIdentifier)", "SubtleCrypto interface: operation unwrapKey(KeyFormat, BufferSource, CryptoKey, AlgorithmIdentifier, AlgorithmIdentifier, boolean, sequence)", - "Stringification of crypto.subtle", "SubtleCrypto interface: crypto.subtle must inherit property \"encrypt(AlgorithmIdentifier, CryptoKey, BufferSource)\" with the proper type", "SubtleCrypto interface: calling encrypt(AlgorithmIdentifier, CryptoKey, BufferSource) on crypto.subtle with too few arguments must throw TypeError", "SubtleCrypto interface: crypto.subtle must inherit property \"decrypt(AlgorithmIdentifier, CryptoKey, BufferSource)\" with the proper type", -- cgit v1.2.3