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