Setting isClippingMask to true doesn't make layer a clipping mask

So, I’m trying to set a layer that is not a clipping mask, to be one.

Setting the RW property of a layer “isClippingMask” to true doesn’t seem to work either.

Tried this…

and

But none of the solutions seem to work. It just doesn’t do anything.

Does anyone have an example of something similar that is working for LTS version?

Ah, I see that fix missed the docs update. This is fixed as of mid-May. What do you mean by LTS version?

Just to specify the version of PS I’m targeting, which is 25.3 that is labeled as LTS by Adobe.

I ended up making it work, I was just doing things wrong. Thanks for the answer though

It would be much appreciated if you shared your solution and marked it