- From: <bugzilla@jessica.w3.org>
- Date: Wed, 17 Oct 2012 16:38:32 +0000
- To: public-webrtc@w3.org
- Message-ID: <bug-19580-4991@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19580 Priority: P2 Bug ID: 19580 CC: public-webrtc@w3.org Assignee: public-webrtc@w3.org Summary: Callbacks need to be called asynchronously Severity: normal Classification: Unclassified OS: All Reporter: ekr@rtfm.com Hardware: PC Status: NEW Version: unspecified Component: WebRTC API Product: WebRTC Working Group Consider the following code: console.log("1"); pc.createOffer(function(x) { console.log("2"); }); console.log("3"); I believe this should print out: 1 3 2 I.e., all API calls which take a callback should return prior to firing the callback. The spec isn't really clear on this point for all of these calls, IMO, so if people agree we should update it to be clear ("queue a task...") -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.
Received on Wednesday, 17 October 2012 16:38:33 UTC