rescript-compiler
rescript-compiler copied to clipboard
Compiler safeguards when defining a __proto__ field
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.
Related https://github.com/rescript-lang/rescript/pull/7342