diff --git a/lib/ace/mode/javascript_worker_test.js b/lib/ace/mode/javascript_worker_test.js index fe482d5c..b8b43cba 100644 --- a/lib/ace/mode/javascript_worker_test.js +++ b/lib/ace/mode/javascript_worker_test.js @@ -74,7 +74,7 @@ module.exports = { assert.equal(error.text, "Unclosed string."); assert.equal(error.type, "error"); assert.equal(error.row, 0); - assert.equal(error.column, 0); + assert.equal(error.column, 2); }, "test another invalid string": function() { @@ -86,7 +86,7 @@ module.exports = { assert.equal(error.text, "Unclosed string."); assert.equal(error.type, "error"); assert.equal(error.row, 0); - assert.equal(error.column, 3); + assert.equal(error.column, 4); } }; diff --git a/lib/ace/worker/worker_client.js b/lib/ace/worker/worker_client.js index 7ef4c502..3411d509 100644 --- a/lib/ace/worker/worker_client.js +++ b/lib/ace/worker/worker_client.js @@ -116,6 +116,7 @@ var WorkerClient = function(topLevelNamespaces, mod, classname) { this.terminate = function() { this._emit("terminate", {}); + this.deltaQueue = null; this.$worker.terminate(); this.$worker = null; this.$doc.removeEventListener("change", this.changeListener); @@ -220,6 +221,6 @@ var UIWorkerClient = function(topLevelNamespaces, mod, classname) { UIWorkerClient.prototype = WorkerClient.prototype; exports.UIWorkerClient = UIWorkerClient; -exports.WorkerClient = UIWorkerClient; +exports.WorkerClient = WorkerClient; });