Skip to content

Commit

Permalink
use set
Browse files Browse the repository at this point in the history
we are saving pure values (string)
  • Loading branch information
patricklx authored Jun 11, 2024
1 parent afd689c commit 2b1ab17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@ember/-internals/metal/lib/cached.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const cached: MethodDecorator = (...args: any[]) => {
}

if (!CacheMap.has(target)) {
CacheMap.set(target, new WeakSet());
CacheMap.set(target, new Set());
}
CacheMap.get(target).add(key);

Expand Down

0 comments on commit 2b1ab17

Please sign in to comment.