summaryrefslogtreecommitdiff
path: root/extensions/crypto/00_webidl.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2021-07-06 17:46:04 +0530
committerGitHub <noreply@github.com>2021-07-06 14:16:04 +0200
commit570309d795d2e2a00fc2523ca80818b275b567e6 (patch)
treed9596da5c8762c8742b872d4ebc95d97414e32d4 /extensions/crypto/00_webidl.js
parent2ed222fceb2a2f3f2dfaeff87953e3b599e18641 (diff)
feat(crypto): implement generateKey() and sign() (#9614)
Co-authored-by: Luca Casonato <hello@lcas.dev> Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'extensions/crypto/00_webidl.js')
-rw-r--r--extensions/crypto/00_webidl.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/extensions/crypto/00_webidl.js b/extensions/crypto/00_webidl.js
deleted file mode 100644
index 4545526bf..000000000
--- a/extensions/crypto/00_webidl.js
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-"use strict";
-
-((window) => {
- const webidl = window.__bootstrap.webidl;
- webidl.converters["AlgorithmIdentifier"] = (V, opts) => {
- // Union for (object or DOMString)
- if (typeof V == "object") {
- return webidl.converters["object"](V, opts);
- }
-
- return webidl.converters["DOMString"](V, opts);
- };
-
- const algorithmDictionary = [
- {
- key: "name",
- converter: webidl.converters["DOMString"],
- },
- ];
-
- webidl.converters["Algorithm"] = webidl.createDictionaryConverter(
- "Algorithm",
- algorithmDictionary,
- );
-})(this);