Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jibrang committed Aug 30, 2024
1 parent e3acfdc commit 80e9655
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion target/braintree-1.3.10.js
Original file line number Diff line number Diff line change
Expand Up @@ -2366,9 +2366,10 @@ sjcl.random = {
}
}

const forbiddenKeys = ['__proto__', 'constructor', 'prototype'];
for (i=0; i<jsTemp.length; i++) {
j = jsTemp[i];
if (j === '__proto__' || j === 'constructor' || j === 'prototype') {
if (forbiddenKeys.includes(j)) {
continue;
}
delete cbs[j];
Expand Down

0 comments on commit 80e9655

Please sign in to comment.