Was there an unhandled exception rasied, jerry_api_invoke_function() returns false with undefined for retval_p. But user of this API might want to know what error was occurred during execution (actually IoT.js do want to know).
What about exposing the error with retval_p parameter in case of exception?