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() {
|
this.onUpdate = function() {
|
||||||
var value = this.doc.getValue();
|
var value = this.doc.getValue();
|
||||||
|
|
||||||
var start = new Date();
|
// var start = new Date();
|
||||||
var parser = require("ace/narcissus/jsparse");
|
var parser = require("ace/narcissus/jsparse");
|
||||||
try {
|
try {
|
||||||
parser.parse(value);
|
parser.parse(value);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.log("narcissus")
|
// console.log("narcissus")
|
||||||
console.log(e);
|
// console.log(e);
|
||||||
sender.emit("narcissus", {
|
sender.emit("narcissus", {
|
||||||
row: e.lineno-1,
|
row: e.lineno-1,
|
||||||
column: null, // TODO convert e.cursor
|
column: null, // TODO convert e.cursor
|
||||||
|
|
@ -32,14 +32,14 @@ oop.inherits(JavaScriptWorker, Mirror);
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
} finally {
|
} finally {
|
||||||
console.log("parse time: " + (new Date() - start));
|
// console.log("parse time: " + (new Date() - start));
|
||||||
}
|
}
|
||||||
|
|
||||||
var start = new Date();
|
// var start = new Date();
|
||||||
console.log("jslint")
|
// console.log("jslint")
|
||||||
lint(value, {undef: false, onevar: false, passfail: false});
|
lint(value, {undef: false, onevar: false, passfail: false});
|
||||||
this.sender.emit("jslint", lint.errors);
|
this.sender.emit("jslint", lint.errors);
|
||||||
console.log("lint time: " + (new Date() - start));
|
// console.log("lint time: " + (new Date() - start));
|
||||||
}
|
}
|
||||||
|
|
||||||
}).call(JavaScriptWorker.prototype);
|
}).call(JavaScriptWorker.prototype);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue