To reproduce:
- Open any object painter
- Add new function
- Type "throw" into Function name field
- tab out/click anywhere
- PB closes immediately without any warning
Happens in 2019R3, can't check other versions. The same thing happens with "throws". Using edit source to change a function name to "throw" or "throws" errors out with "Syntax error" instead.
With other reserved words you just get a warning, I get the feeling this shouldn't happen.