comment out log messages
This commit is contained in:
parent
ffada5c7b2
commit
e337454cb4
1 changed files with 7 additions and 7 deletions
|
|
@ -17,13 +17,13 @@ oop.inherits(JavaScriptWorker, Mirror);
|
|||
this.onUpdate = function() {
|
||||
var value = this.doc.getValue();
|
||||
|
||||
var start = new Date();
|
||||
// var start = new Date();
|
||||
var parser = require("ace/narcissus/jsparse");
|
||||
try {
|
||||
parser.parse(value);
|
||||
} catch(e) {
|
||||
console.log("narcissus")
|
||||
console.log(e);
|
||||
// console.log("narcissus")
|
||||
// console.log(e);
|
||||
sender.emit("narcissus", {
|
||||
row: e.lineno-1,
|
||||
column: null, // TODO convert e.cursor
|
||||
|
|
@ -32,14 +32,14 @@ oop.inherits(JavaScriptWorker, Mirror);
|
|||
});
|
||||
return;
|
||||
} finally {
|
||||
console.log("parse time: " + (new Date() - start));
|
||||
// console.log("parse time: " + (new Date() - start));
|
||||
}
|
||||
|
||||
var start = new Date();
|
||||
console.log("jslint")
|
||||
// var start = new Date();
|
||||
// console.log("jslint")
|
||||
lint(value, {undef: false, onevar: false, passfail: false});
|
||||
this.sender.emit("jslint", lint.errors);
|
||||
console.log("lint time: " + (new Date() - start));
|
||||
// console.log("lint time: " + (new Date() - start));
|
||||
}
|
||||
|
||||
}).call(JavaScriptWorker.prototype);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue