But this works well on my own Chrome:
> console.log(1); (() => {})(); VM97:1 1 undefined
What is your JS environment, please.