This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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...")
has this been fixed?
I pushed a proposed fix for this. https://github.com/fluffy/webrtc-w3c/commit/d92edbd3ade315608d46ab734fecc27632c0b786
Based on Ekr's feedback I've updated the spec text. https://github.com/fluffy/webrtc-w3c/commit/1198dd8784e905d88f3b29023c0d54dce10e8c11