bublejs / buble

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

Please support setPrototypeOf instead of __proto__ #281

Open kapouer opened 2 years ago

kapouer commented 2 years 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 2 years ago

282 fixes this issue