rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

Compiler safeguards when defining a __proto__ field

Open DZakh opened this issue 9 months ago • 1 comments

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 avatar Mar 16 '25 09:03 DZakh

Related https://github.com/rescript-lang/rescript/pull/7342

DZakh avatar Mar 16 '25 09:03 DZakh