[PATCH 03/10] jscript: Directly return error code instead of using throw_generic_error.