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
It is a poor design to crash if an undefined event is passed to the can function. It appears that the purpose of the function is to determine if a given event is valid, not to crash the program if it is not. It should just return false.
The text was updated successfully, but these errors were encountered:
Tried this out because it looked cool. Used the following code:
It is a poor design to crash if an undefined event is passed to the
can
function. It appears that the purpose of the function is to determine if a given event is valid, not to crash the program if it is not. It should just returnfalse
.The text was updated successfully, but these errors were encountered: