Skip to content

Commit

Permalink
Fix code scanning alert no. 204: Prototype-polluting function
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 63b42b0 commit d9a337b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils/merge.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default function mergeDeep(target, ...sources) {
for (const key in source) {

if (Object.getPrototypeOf(source) !== Object.getPrototypeOf({})) continue;
if (key === "__proto__" || key === "constructor") continue;

if (source[key] instanceof HTMLElement) {
console.warn(source[key])
Expand Down

0 comments on commit d9a337b

Please sign in to comment.