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
The concepts section of the paint API spec defines a "class constructor valid flag".
However, the algorithm that sets this flag always sets it to true, since it throws exceptions earlier rather than doing things that would set it to false.
It seems like this flag can be removed given that the earlier errors throw exceptions. Unless, that is, it's needed to address #328 .
This flag is used to only try to construct a class instance once. E.g. if the constructor threw an error for example (in "draw a paint image"). Where it was set was misspelled and hence not referenced properly.
E.g.
registerPaint('foo',class{constructor(){throwError();}// will once get called once.});
The concepts section of the paint API spec defines a "class constructor valid flag".
However, the algorithm that sets this flag always sets it to true, since it throws exceptions earlier rather than doing things that would set it to false.
It seems like this flag can be removed given that the earlier errors throw exceptions. Unless, that is, it's needed to address #328 .
(I got here from w3ctag/design-reviews#140 .)
The text was updated successfully, but these errors were encountered: