src/jdk/nashorn/internal/runtime/ErrorManager.java

changeset 44
e62dba3ce52b
parent 11
0e7da548ef6a
child 112
267cc4c85160
equal deleted inserted replaced
43:e43d1013d871 44:e62dba3ce52b
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.

mercurial