[PATCH 06/10] jscript: Directly return error code instead of using throw_regexp_error.