Skip to content

Commit

Permalink
Update src/plainer.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Knott <[email protected]>
  • Loading branch information
tmcw and Skn0tt committed Oct 23, 2023
1 parent 5f7b33b commit e5c18b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export const walker = (
index === 'constructor' ||
index === 'prototype'
) {
return;
throw new Error(`Detected property "`${index}". This is a prototype pollution risk, please remove it from your object.`)
}

const recursiveResult = walker(
Expand Down

0 comments on commit e5c18b6

Please sign in to comment.