Conversation

This Tweet was deleted by the Tweet author. Learn more
You cannot reference the env as an object in JS, so your example does not demonstrate the difference you describe. Instead, there is only one var binding and (in the spec and common implementations) only one env for it. Looks like global scope without an IIFE around top level.
1
1