Skip to content

[Feature Request] Hide Globals Instances  #1055

Description

@BlackYuzia

#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...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions