Open cynthia opened 1 year ago
Per discussion yesterday: Getters and setters should behave like regular data properties. This means, they should not throw when read or set. If a setter needs to throw, it should be a method. Guidance should be stronger against getters throwing than setters throwing.
That's the wrong advice. Setters will pretty much always throw due to IDL. (Getters can also be made to throw by passing the wrong this, but that's indeed kind of a corner case and generally they shouldn't throw.)
...as title suggests.