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
exportclassNullDereferencedextendsError{constructor(readonlymessage: string='This value was promised to never be undefined.'){super(message);Object.setPrototypeOf(this,NullDereferenced.prototype);if('captureStackTrace'inError){// wotan-disable-line no-useless-predicateError.captureStackTrace(this,NullDereferenced);}}}
Actual behavior
The super() call causes an error.
Using expressions to cause side-effects not allowed. (no-expression-statement)
Expected bahavior
No error. There is no way around that.
Possible heuristic
If the offending node is a CallExpression, and the inner expression is of type SuperKeyword, then the error should not be raised.