X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Futils.ts;h=753219c5e37d367b8d5d83790f76847445d36663;hb=4f3c3d894171421375559b43ce469bd5ccb475da;hp=46ab5051f38ff77eb2fd06c41199bd360b306276;hpb=4e94da3a0cd5bfe961c73babead4262134f8770f;p=poolifier.git diff --git a/src/utils.ts b/src/utils.ts index 46ab5051..753219c5 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,11 +1,11 @@ /** * An intentional empty function. */ -export const EMPTY_FUNCTION: () => void = () => { +export const EMPTY_FUNCTION: () => void = Object.freeze(() => { /* Intentionally empty */ -} +}) /** * An intentional empty object literal. */ -export const EMPTY_LITERAL = {} +export const EMPTY_OBJECT_LITERAL = {}