1importScripts("/res/jshint/dist/jshint.js") 2 3self.onmessage = function (ev) { 4 var ret, req = ev.data 5 6 if (req.task === "lint") { 7 JSHINT(req.code, req.config) 8 9 ret = JSHINT.data() 10 ret.options = null 11 self.postMessage({ task: "lint", result: JSON.stringify(ret) }) 12 } 13}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.