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
All public constructors should verify that they were called with 'new'. If they were not, they should throw an Error.
It should look something like this:
functionWaffle(diameter){if(!(thisinstanceofWaffle)){// ERROR: constructor called without 'new'vare=newError("Waffle constructor must be called with 'new'");e.detail={waffleSizeDesired: diameter};throwe;}this.diameter=diameter;this.tastes="yummy";}
The text was updated successfully, but these errors were encountered:
Friday Jan 06, 2012 at 23:30 GMT
Originally opened as adobe/brackets#48
All public constructors should verify that they were called with 'new'. If they were not, they should throw an Error.
It should look something like this:
The text was updated successfully, but these errors were encountered: