无法从 Chrome 中的 webworker 内部创建 Web Worker

问题描述:

使用 Chrome 17.0.963.46 m,我尝试从 web worker 内部创建一个新的 web worker.但是得到了未捕获的引用错误:未定义工作线程"

Using Chrome 17.0.963.46 m, I tried to create a new web worker from inside a web worker. But got a "Uncaught ReferenceError: Worker is not defined"

任何信息.在这个?(Google 在 webworkers 中创建 web worker 的链接出奇地少)

Any info. on this? (Google throw surprisingly few links on creating web worker inside webworkers)

在 chrome 中不支持在 worker 中创建 worker.FF 使用示例实现了这一点.

Creating workers within workers is not available in chrome. FF implemented this with the Example.

查看示例和 Chroem 错误的链接.

See the link for Example and Chroem bug.

https://developer.mozilla.org/en-US/文档/DOM/Worker/Functions_available_to_workers

https://developer.mozilla.org/en-US/docs/DOM/Using_web_workers?redirectlocale=en-US&redirectslug=Using_web_workers

Mozilla 开发者网络指定的示例.

Example specified by Mozilla Developer network.

https://developer.mozilla.org/samples/workers/fibonacci/

铬BUg

http://code.google.com/p/chromium/问题/详细信息?id=31666