Skip to content

Compiler safeguards when defining a __proto__ field #7343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DZakh opened this issue Mar 16, 2025 · 1 comment
Open

Compiler safeguards when defining a __proto__ field #7343

DZakh opened this issue Mar 16, 2025 · 1 comment
Milestone

Comments

@DZakh
Copy link
Member

DZakh commented Mar 16, 2025

https://rescript-lang.org/try?version=v11.1.4&module=esmodule&code=C4TwDgpgBMULxQN4H1lgE4HtidQLigGdh0BLAOwHMBfAKFoClCA6AG00oAoU0sd8oAIgBmmTIOoBKWkA

It would be nice for compiler to prevent records creation with the __proto__ field name, since it doesn't work in JavaScript.

@DZakh
Copy link
Member Author

DZakh commented Mar 16, 2025

Related #7342

@cknitt cknitt added this to the v12.1 milestone May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants