TextGeometry depth isn't updating

Trying to use TextGeometry, but the depth parameter seems to be immutable.
Code that I am using:

Output that I am getting:

Console mentions depth parameter as 50:

Using three@0.161.0

Just checked, works fine in three@0.165.0 :+1: