lib: use StringPrototypeStartsWith from primordials in locks · nodejs/node@069874b · GitHub
Skip to content

Commit 069874b

Browse files
kimtaejin3aduh95
authored andcommitted
lib: use StringPrototypeStartsWith from primordials in locks
Use StringPrototypeStartsWith from primordials instead of String.prototype.startsWith to prevent prototype pollution. Refs: #59699 PR-URL: #61492 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
1 parent 4c80031 commit 069874b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/locks.js

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)