ECMAScript-2021 - variable error on the second time the rule is run?

Hi,
Rich described this in migration-tutorial under “disadvantages” : Migrate from Nashorn to JSScripting for UI Rules