summaryrefslogtreecommitdiff
path: root/ext/crypto/00_crypto.js
diff options
context:
space:
mode:
author李瑞丰 <li15227870916@gmail.com>2021-09-25 01:07:22 +0800
committerGitHub <noreply@github.com>2021-09-25 02:07:22 +0900
commit46245b830a24930ab36f8ce2831325cdd1da17d3 (patch)
treec96c2a69a30120d2cdf639b72a3bace836417151 /ext/crypto/00_crypto.js
parent9705efd419ffa05b0d88e788e0ceb77e38078449 (diff)
fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851)
Co-authored-by: Luca Casonato <hello@lcas.dev> Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'ext/crypto/00_crypto.js')
-rw-r--r--ext/crypto/00_crypto.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/ext/crypto/00_crypto.js b/ext/crypto/00_crypto.js
index 50ee9a7db..a503d316a 100644
--- a/ext/crypto/00_crypto.js
+++ b/ext/crypto/00_crypto.js
@@ -27,7 +27,6 @@
StringFromCharCode,
Symbol,
SymbolFor,
- SymbolToStringTag,
WeakMap,
WeakMapPrototypeGet,
WeakMapPrototypeSet,
@@ -270,10 +269,6 @@
return this[_algorithm];
}
- get [SymbolToStringTag]() {
- return "CryptoKey";
- }
-
[SymbolFor("Deno.customInspect")](inspect) {
return `${this.constructor.name} ${
inspect({
@@ -1570,10 +1565,6 @@
return result;
}
-
- get [SymbolToStringTag]() {
- return "SubtleCrypto";
- }
}
async function generateKey(normalizedAlgorithm, extractable, usages) {
@@ -2027,6 +2018,7 @@
}
}
+ webidl.configurePrototype(SubtleCrypto);
const subtle = webidl.createBranded(SubtleCrypto);
class Crypto {
@@ -2079,10 +2071,6 @@
return subtle;
}
- get [SymbolToStringTag]() {
- return "Crypto";
- }
-
[SymbolFor("Deno.customInspect")](inspect) {
return `${this.constructor.name} ${inspect({})}`;
}