#JS lazily evaluated properties with one weird trick

(oldie but goodie — way too many think you need Object.defineProperty() for this)

@leaverou 😭
Could you explain us why this happening ?
@gllmr You are replacing the accessor with a plain property in the getter, so after the first time, the getter will never run again.
@leaverou fancy! Why the delete though? ☺️
@jpunt Try without it and you'll see :)