bublejs / buble

https://buble.surge.sh
MIT License
869 stars 67 forks source link

Please support setPrototypeOf instead of __proto__ #281

Open kapouer opened 1 year ago

kapouer commented 1 year ago

According to MDN docs on proto, all A.__proto__ = B should actually be Object.setPrototypeOf(A, B). __proto__ is only allowed to keep compatibility, and represents a huge security vulnerability surface. This would also allow "hardening" nodejs with --disable-proto=delete|throw.

guimard commented 1 year ago

282 fixes this issue