Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Closure warns on unreachable checked array code
Key details
Description
The checked-aget and checked-aset code involves a try / catch where the entire body involves {{assert}}s. Thus when asserts are elided and Closure also sees the resulting code it looks roughly like code you'd get for
and Closure warns that the code in the catch block is unreachable:
The
checked-aget
andchecked-aset
code involves atry
/catch
where the entire body involves {{assert}}s. Thus when asserts are elided and Closure also sees the resulting code it looks roughly like code you'd get forand Closure warns that the code in the catch block is unreachable: