async-proxy.js is a simple helper library enables migrating a whole javascript class to a web-worker.
Can be found here: http://mamazav.github.io/async-proxy.js/
The library was compiled using Google Closure Compiler:
cd src
java -jar closure_compiler.jar --js async-proxy-script-blob.js --js sub-worker-emulation-for-chrome.js --js async-proxy-master.js --js async-proxy-slave.js --js scripts-to-import-pool.js --js dependency-workers/linked-list.js --js dependency-workers/hash-map.js dependency-workers/js-builtin-hash-map.js --js dependency-workers/dependency-workers.js --js dependency-workers/dependency-workers-task-handle.js --js dependency-workers/dependency-workers-internal-context.js --js dependency-workers/wrapper-input-retreiver-base.js --js dependency-workers/promise-task.js --js dependency-workers/promise-wrapper-input-retreiver.js --js dependency-workers/promise-dependency-workers.js --js dependency-workers/scheduler-task.js --js dependency-workers/scheduler-wrapper-input-retreiver.js --js dependency-workers/scheduler-dependency-workers.js --js async-proxy-exports.js --js_output_file ..\async-proxy.dev.js --compilation_level ADVANCED_OPTIMIZATIONS
java -jar closure_compiler.jar --js async-proxy-script-blob.js --js sub-worker-emulation-for-chrome.js --js async-proxy-master.js --js async-proxy-slave.js --js scripts-to-import-pool.js --js dependency-workers/linked-list.js --js dependency-workers/hash-map.js dependency-workers/js-builtin-hash-map.js --js dependency-workers/dependency-workers.js --js dependency-workers/dependency-workers-task-handle.js --js dependency-workers/dependency-workers-internal-context.js --js dependency-workers/wrapper-input-retreiver-base.js --js dependency-workers/promise-task.js --js dependency-workers/promise-wrapper-input-retreiver.js --js dependency-workers/promise-dependency-workers.js --js dependency-workers/scheduler-task.js --js dependency-workers/scheduler-wrapper-input-retreiver.js --js dependency-workers/scheduler-dependency-workers.js --js async-proxy-exports.js --js_output_file ..\async-proxy.dev.debug.js --compilation_level WHITESPACE_ONLY
This library is distributed under Apache 2.0 license.