4 ms·
Check the modules sample, there a module is passed as argument to the self executing function to which the newly created Greeter class is added, without leaking
by Too 12y ago
Check the modules sample, there a module is passed as argument to the self executing function to which the newly created Greeter class is added, without leaking any temporary Greeter variables to the global namespace. I guess it's just designed to generate as similar code as possible for both the module and non-module cases.