[Bug 15094] New: When creating a worker, it should be possible to assign some arguments to the constructor, or pass an init object like so: var worker = new Worker("someurl.js", { someData: "1234" }); The object passed could be made available as the current context (this.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15094

           Summary: When creating a worker, it should be possible to
                    assign some arguments to the constructor, or pass an
                    init object like so: var worker = new
                    Worker("someurl.js", { someData: "1234" }); The object
                    passed could be made available as the current context
                    (this.
           Product: WebAppsWG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#top
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Web Workers (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org


Specification: http://www.w3.org/TR/workers/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
When creating a worker, it should be possible to assign some arguments to the
constructor, or pass an init object like so:

var worker = new Worker("someurl.js", { someData: "1234" });

The object passed could be made available as the current context
(this.someData) or as a global variable with a predefined name.


Posted from: 84.48.203.37
User agent: Mozilla/5.0 (iPad; U; CPU OS 4_2_1 like Mac OS X; nb-no)
AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148
Safari/6533.18.5

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Wednesday, 7 December 2011 00:57:45 UTC