Commit 7e96901b authored by chriseth's avatar chriseth

Fix worker implementation.

parent b861e45c
var version = function() { return '(loading)'; }
var compileJSON = function() { return ''; }
var missingInputs = [];
addEventListener('message', function(e) {
var data = e.data;
var missingInputs = [];
switch (data.cmd) {
case 'loadVersion':
delete Module;
......@@ -32,7 +32,7 @@ addEventListener('message', function(e) {
});
break;
case 'compile':
missingInputs
missingInputs.length = 0;
postMessage({cmd: 'compiled', data: compileJSON(data.source, data.optimize)}, missingInputs: missingInputs);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment