SqueakJS icon indicating copy to clipboard operation
SqueakJS copied to clipboard

JSBridge-Core-ct.11: Fix superclass of JSException

Open LinqLover opened this issue 5 months ago • 6 comments

One should (always) never subclass from Exception itself, but most of the time from Error or Notification or one of its subclasses. Exception is an abstract class, and the previous implementation led to SubclassResponsibility errors from Exception>>defaultAction when signaling a JSException. Since JavaScript errors do not have Smalltalk''s coroutine capabilities, subclassing from Error seems a perfect match in this case.

LinqLover avatar Jan 23 '24 19:01 LinqLover