summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2021-07-09 20:34:50 +0530
committerGitHub <noreply@github.com>2021-07-09 17:04:50 +0200
commit391bf17479dbc087e0e7dde65f8b353f5089486c (patch)
treed48f337359f1d0b08ed17ce695641b95030dd99f
parentd9c43f7f43905376c908d9bb534a0b04a8727195 (diff)
chore(extensions/crypto): enable WPT stringification test (#11336)
-rw-r--r--extensions/crypto/00_crypto.js4
-rw-r--r--tools/wpt/expectation.json1
2 files changed, 4 insertions, 1 deletions
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<KeyUsage>)",
- "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",