process.exec_result returns WEXITSTATUS value of the result.
C++ main returns return value from JS main() function.  Test this in
tests.