(function () { 'use strict'; const o = { f: function () { console.log(a); } }; const a = 'aaa'; o.f(); })(); // Prints 'aaa'.