1
0
Fork 0

test the security fix

This commit is contained in:
Enoch Riese 2022-12-08 20:06:22 -06:00
parent 08f1dcdaba
commit 4f42f4038c
2 changed files with 13 additions and 1 deletions

View file

@ -122,7 +122,7 @@ Pattern.prototype.draft = function () {
Pattern.prototype.createPartForSet = function (partName, set = 0) {
// gotta protect against attacks
if (typeof set === '__proto__') {
if (set === '__proto__') {
throw new Error('malicious attempt at altering Object.prototype. Stopping action')
}
// Create parts