Liferay.Loader.define("portal-search-web$codemirror@5.62.0/addon/lint/javascript-lint",["module","exports","require","../../lib/codemirror"],(function(r,e,n){window,function(r){"use strict";r.registerHelper("lint","javascript",(function(e,n){if(!window.JSHINT)return window.console&&window.console.error("Error: window.JSHINT not defined, CodeMirror JavaScript linting cannot run."),[];n.indent||(n.indent=1),JSHINT(e,n,n.globals);var o=JSHINT.data().errors,i=[];return o&&function(e,n){for(var o=0;o<e.length;o++){var i=e[o];if(i){if(i.line<=0){window.console&&window.console.warn("Cannot display JSHint error (invalid line "+i.line+")",i);continue}var t=i.character-1,a=t+1;if(i.evidence){var d=i.evidence.substring(t).search(/.\b/);d>-1&&(a+=d)}var c={message:i.reason,severity:i.code&&i.code.startsWith("W")?"warning":"error",from:r.Pos(i.line-1,t),to:r.Pos(i.line-1,a)};n.push(c)}}}(o,i),i}))}("object"==typeof e&&"object"==typeof r?n("../../lib/codemirror"):CodeMirror)}));
//# sourceMappingURL=javascript-lint.js.map