test the security fix
This commit is contained in:
parent
08f1dcdaba
commit
4f42f4038c
2 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue