[PATCH 09/10] jscript: Directly return error code instead of using throw_type_error in date.c.