From 899a95727293058f0a02985bfacce45e86910942 Mon Sep 17 00:00:00 2001 From: Mathieu Hofman Date: Wed, 16 Mar 2022 23:43:12 +0000 Subject: [PATCH] fixup! fixup! fix(ses): Do not get confused by well-known look-alikes Follow casing conventions --- packages/ses/src/commons.js | 4 ++-- packages/ses/src/whitelist-intrinsics.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/ses/src/commons.js b/packages/ses/src/commons.js index ed996492d8..c271f4e324 100644 --- a/packages/ses/src/commons.js +++ b/packages/ses/src/commons.js @@ -72,8 +72,8 @@ export const { toStringTag: toStringTagSymbol, iterator: iteratorSymbol, matchAll: matchAllSymbol, - keyFor: SymbolKeyFor, - for: SymbolFor, + keyFor: symbolKeyFor, + for: symbolFor, } = Symbol; export const { isInteger } = Number; diff --git a/packages/ses/src/whitelist-intrinsics.js b/packages/ses/src/whitelist-intrinsics.js index 28704afc05..1819e803cd 100644 --- a/packages/ses/src/whitelist-intrinsics.js +++ b/packages/ses/src/whitelist-intrinsics.js @@ -58,7 +58,7 @@ import { mapGet, objectHasOwnProperty, ownKeys, - SymbolKeyFor, + symbolKeyFor, } from './commons.js'; /** @@ -108,7 +108,7 @@ export default function whitelistIntrinsics( if (wellKnownSymbol) { return wellKnownSymbol; } else { - const registeredKey = SymbolKeyFor(prop); + const registeredKey = symbolKeyFor(prop); if (registeredKey !== undefined) { return `RegisteredSymbol(${registeredKey})`; } else {