The main thread/page sends through a Date object, and an integer is returned - according to https://developer.mozilla.org/En/Using_web_workers they are automagically converted to JSON internally.