[Feature Request] Hide Globals Instances

Author: BlackYuziaCreated Feb 8, 2022Updated Feb 12, 2022
Labelsenhancement

#753 that probably a duplicate? Not sure, if yes - just merge this two issues.

I just want to say, what we could hide global inside function with objects like:

function getGlobal(hash) {
const globals = {"FxA32": Window};
return globals[hash]
}

and call it

getGlobal(...);

But, I think, also would be great to hide creating instance with new key.

new getGlobal(...)[...] // change to: 
newGlobalInstance(...) // will return any new Class, or new Map() or etc...

Source: javascript-obfuscator/javascript-obfuscator