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
Suggested by Sebastian Markbåge during the July TC39 meeting. The concern is that checking for the presence of @@dispose or @@asyncDispose at the end of the try-using block is problematic as the exception is thrown after side effects have happened in the block.
The proposed resolution is to capture the @@dispose or @@asyncDispose method at the start of the block and throwing an exception if the method is not present or not callable at that time.
The text was updated successfully, but these errors were encountered:
Suggested by Sebastian Markbåge during the July TC39 meeting. The concern is that checking for the presence of
@@dispose
or@@asyncDispose
at the end of thetry
-using
block is problematic as the exception is thrown after side effects have happened in the block.The proposed resolution is to capture the
@@dispose
or@@asyncDispose
method at the start of the block and throwing an exception if the method is not present or not callable at that time.The text was updated successfully, but these errors were encountered: