http://www.whatwg.org/specs/web-workers/current-work/#interface-objects-and-constructors it seems that MAY is possible (as of 10/21/2009):
"In the global scripting area, whose global script object is not a WorkerGlobalScope object, there should be no interface objects and constructors, except for the following: [...] Worker and SharedWorker interface objects and constructors."
Here
- "globally scripted, the global script object is a WorkerGlobalScope object" means "among work globals"
- "must not be ... except" open to interpretation.
You might want to find open questions / send feedback. The specification has this text:
To send feedback: whatwg@whatwg.org To view and vote on feedback: http://www.whatwg.org/issues/
source share