77 if (warningsAsErrors) { |
77 if (warningsAsErrors) { |
78 count += warnings; |
78 count += warnings; |
79 } |
79 } |
80 |
80 |
81 if (limit != 0 && count > limit) { |
81 if (limit != 0 && count > limit) { |
82 rangeError(Context.getGlobal(), "too.many.errors", Integer.toString(limit)); |
82 rangeError("too.many.errors", Integer.toString(limit)); |
83 } |
83 } |
84 } |
84 } |
85 |
85 |
86 /** |
86 /** |
87 * Format an error message to include source and line information. |
87 * Format an error message to include source and line information. |