How do I detect javascript errors with Katalon?

What do I need to do in Katalon in order to detect and record java script errors?

you simply neeed …
assert

See this thread, but be aware, Firefox does not support “non-standard” APIs like this: