fix #2109: script assert error does not show stack