google / CodeCity

Google's Code City is a social programming environment. It offers a comic book inspired virtual world where programmers can write code collaboratively.
https://codecity.world/
Apache License 2.0
186 stars 38 forks source link

Polyfilled builtin functions shouldn't be constructors #188

Open cpcallen opened 6 years ago

cpcallen commented 6 years ago

At the moment, polyfilled builtins like Array.prototype.join:

Neither of these should be true.

cpcallen commented 4 years ago

Maybe the solution is to provide an alternate Function constructor that does not create .prototype, and makes the function non-constructible.