From 15202d9d400419d34a4e7b32e9ca7ba1ba85a4b2 Mon Sep 17 00:00:00 2001 From: Daniel Huigens Date: Wed, 19 Feb 2020 16:56:40 +0100 Subject: [PATCH] Don't use polyfilled Set in compat build All methods of sets we need are available in all browsers we support. --- src/config/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/config.js b/src/config/config.js index 39d34a12..03dd16b0 100644 --- a/src/config/config.js +++ b/src/config/config.js @@ -215,10 +215,10 @@ export default { * @memberof module:config * @property {Set} reject_hash_algorithms Reject insecure hash algorithms {@link module:enums.hash} */ - reject_hash_algorithms: new Set([enums.hash.md5, enums.hash.ripemd]), + reject_hash_algorithms: new global.Set([enums.hash.md5, enums.hash.ripemd]), /** * @memberof module:config * @property {Set} reject_message_hash_algorithms Reject insecure message hash algorithms {@link module:enums.hash} */ - reject_message_hash_algorithms: new Set([enums.hash.md5, enums.hash.ripemd, enums.hash.sha1]) + reject_message_hash_algorithms: new global.Set([enums.hash.md5, enums.hash.ripemd, enums.hash.sha1]) };