You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would the emit look like for this? Sounds like it would clearly break/not be compatible with ES6 classes. What would be the proposed behaviour on new? If you were creating a singleton, why not just an object literal using the ES6 notation?
Sometimes the private modifier on the constructor can be useful, especially if you want to implement some kind of singletons.
The text was updated successfully, but these errors were encountered: