diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-09-13 15:13:20 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-09-13 15:13:20 -0700 |
commit | 62e2462acc312b8cd075a8efa224eca5969c5ad9 (patch) | |
tree | 9f5f49bf051e11f0884cce55414cadd9d71e1a87 /tools/reproduceriter.py | |
parent | c10c47d9cb43e8fc41ae93874cd191bf6584d8c6 (diff) |
fix worker message passing in shell replay
Diffstat (limited to 'tools/reproduceriter.py')
-rwxr-xr-x | tools/reproduceriter.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/reproduceriter.py b/tools/reproduceriter.py index 076de493..d5bb1ac7 100755 --- a/tools/reproduceriter.py +++ b/tools/reproduceriter.py @@ -348,14 +348,16 @@ if (typeof nagivator == 'undefined') { this.terminate = function(){}; this.postMessage = function(msg) { window.setTimeout(function() { - onmessage(msg); + print('worker ' + path + ' receiving onmessage'); + onmessage({ data: msg }); }); }; var thisWorker = this; var postMessage = function(msg) { if (thisWorker.onmessage) { window.setTimeout(function() { - thisWorker.onmessage(msg); + print('main thread receiving message from ' + path); + thisWorker.onmessage({ data: msg }); }); } }; |