Not possible. Previous discussion: https://esdiscuss.org/topic/global-lexical-tier (the one Jason mentioned above).
Key take-away from the above, which is admittedly sad: > When it comes to aesthetics vs. implementability and usability, we have to throw aesthetics under the bus. This is JavaScript, after all! :-P Ok, seriously, we did not actually make anything prettier. The top level is hopeless. All we did was leave a couple of hazards for implementors and users in ES6. :(
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

