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 {