Add specs for web workers.

This commit is contained in:
Cheng Zhao 2014-07-09 15:55:01 +08:00
parent 7b93a19e9b
commit d81a34d3dd
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,7 @@
onconnect = function(event) {
var port = event.ports[0];
port.start();
port.onmessage = function(event) {
port.postMessage(event.data);
}
}