diff --git a/lib/ace/worker/worker.js b/lib/ace/worker/worker.js index cb449ffd..a7a555d9 100644 --- a/lib/ace/worker/worker.js +++ b/lib/ace/worker/worker.js @@ -19,9 +19,10 @@ var require = function(id) { var chunks = id.split("/"); chunks[0] = require.tlns[chunks[0]] || chunks[0]; - path = require.baseUrl + "/" + chunks.join("/") + ".js" + path = /*require.baseUrl + "/" +*/ chunks.join("/") + ".js" require.id = id; +// console.log("require " + path + " " + id) importScripts(path); return require(id); }; diff --git a/lib/ace/worker/worker_client.js b/lib/ace/worker/worker_client.js index f98e5a1e..44cb453b 100644 --- a/lib/ace/worker/worker_client.js +++ b/lib/ace/worker/worker_client.js @@ -42,6 +42,7 @@ var WorkerClient = function(baseUrl, topLevelNamespaces, packagedJs, module, cla var _self = this; this.$worker.onerror = function(e) { + console.log(e); throw e; }; this.$worker.onmessage = function(e) {