Cannot set property receiveShadows of [object Object] which has only a getter with ES6

I did mean sourceMesh, which is a property instanced meshes do have, and they are the only kind of mesh that only have the getter. The other one is AbstractMesh, which has both a getter and a setter for receiveShadows.