summaryrefslogtreecommitdiff
path: root/ext/crypto/00_crypto.js
diff options
context:
space:
mode:
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({})}`;
}