Skip to content

Commit

Permalink
Merge pull request #128 from iccicci/fix/unique-names
Browse files Browse the repository at this point in the history
fix: add Map and Set to unique names
  • Loading branch information
pjmolina authored Nov 4, 2024
2 parents f1de9bc + 6ca316b commit b5c9d69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/get-unique-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const RESERVED_WORDS = new Set([
'length',
'location',
'locationbar',
'Map',
'Math',
'menubar',
'moveBy',
Expand Down Expand Up @@ -148,6 +149,7 @@ const RESERVED_WORDS = new Set([
'scrollBy',
'scrollTo',
'self',
'Set',
'setInterval',
'setTimeout',
'status',
Expand All @@ -162,8 +164,8 @@ const RESERVED_WORDS = new Set([
'valueOf',
'watch',
'window',
// Typescript

// Typescript
'as',
'implements',
'interface',
Expand Down

0 comments on commit b5c9d69

Please sign in to comment.