diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-08 20:00:28 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-08 20:00:28 -0700 |
commit | 07151505da3206bd23101f25d05aba185e83c836 (patch) | |
tree | 953c1ff3323171ef5ead77fb5f6c2944686f456c /src/proxyClient.js | |
parent | 2d0bd0061a4e57f999cf5c4bd537ffd8a2a0cdba (diff) |
test file preloading in worker
Diffstat (limited to 'src/proxyClient.js')
-rw-r--r-- | src/proxyClient.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/proxyClient.js b/src/proxyClient.js index f102ed86..bbf3e278 100644 --- a/src/proxyClient.js +++ b/src/proxyClient.js @@ -8,6 +8,14 @@ var worker = new Worker('{{{ filename }}}.js'); worker.onmessage = function(event) { var data = event.data; switch (data.target) { + case 'stdout': { + Module.print(data.content); + break; + } + case 'stderr': { + Module.printErr(data.content); + break; + } case 'window': { window[data.method](); break; |