Skip to content

Commit

Permalink
fixup! fixup! fix(ses): Do not get confused by well-known look-alikes
Browse files Browse the repository at this point in the history
Follow casing conventions
  • Loading branch information
mhofman committed Mar 16, 2022
1 parent afda307 commit 899a957
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/ses/src/commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions packages/ses/src/whitelist-intrinsics.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import {
mapGet,
objectHasOwnProperty,
ownKeys,
SymbolKeyFor,
symbolKeyFor,
} from './commons.js';

/**
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 899a957

Please sign in to comment.