Liferay.Loader.define("liferay!layout-content-page-editor-web$codemirror@5.65.2/addon/lint/javascript-lint",["module","exports","require","../../lib/codemirror"],(function(r,e,o){window,function(r){"use strict";r.registerHelper("lint","javascript",(function validator(e,o){if(!window.JSHINT)return window.console&&window.console.error("Error: window.JSHINT not defined, CodeMirror JavaScript linting cannot run."),[];o.indent||(o.indent=1),JSHINT(e,o,o.globals);var n=JSHINT.data().errors,i=[];return n&&function parseErrors(e,o){for(var n=0;n<e.length;n++){var i=e[n];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)};o.push(c)}}}(n,i),i}))}("object"==typeof e&&"object"==typeof r?o("../../lib/codemirror"):CodeMirror)}));
//# sourceMappingURL=javascript-lint.js.map