Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krlosMata committed Feb 29, 2024
1 parent d69195c commit 6de80b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtual-counters-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ module.exports = class VirtualCountersManager {
spentCountersByFunction[this.calledFunc] = spentCounters;
} else {
Object.keys(this.currentCountersSnapshot).forEach((counter) => {
spentCountersByFunction[this.calledFunc][counter] = spentCountersByFunction[this.calledFunc][counter] + spentCounters[counter];
spentCountersByFunction[this.calledFunc][counter] += spentCounters[counter];

Check warning

Code scanning / CodeQL

Prototype-polluting assignment Medium

This assignment may alter Object.prototype if a malicious '__proto__' string is injected from
library input
.
});
}

Expand Down

0 comments on commit 6de80b8

Please sign in to comment.