(error)
| 2023 | |
| 2024 | |
| 2025 | function recordError(error) { |
| 2026 | var e, existing; |
| 2027 | |
| 2028 | for (e = 0; e < extra.errors.length; e++) { |
| 2029 | existing = extra.errors[e]; |
| 2030 | // Prevent duplicated error. |
| 2031 | /* istanbul ignore next */ |
| 2032 | if (existing.index === error.index && existing.message === error.message) { |
| 2033 | return; |
| 2034 | } |
| 2035 | } |
| 2036 | |
| 2037 | extra.errors.push(error); |
| 2038 | } |
| 2039 | |
| 2040 | function createError(line, pos, description) { |
| 2041 | var error = new Error('Line ' + line + ': ' + description); |
no outgoing calls
no test coverage detected