Implement Worker.postMessage.