Backed out changeset d66d35f64802 because it is wrong.

This commit is contained in:
Paul Adenot 2012-11-20 14:53:46 +01:00
parent a21f3b6313
commit 5b3dffac00

View File

@ -144,14 +144,13 @@ SessionDescription.prototype = {
Ci.nsIDOMRTCSessionDescription, Ci.nsIDOMGlobalObjectConstructor
]),
constructor: function(win, descriptionInitDict) {
constructor: function(win, type, sdp) {
if (this._win) {
throw new Error("Constructor already called");
}
this._win = win;
if (descriptionInitDict === undefined) {
this.type = this.sdp = null;
}
this.type = type;
this.sdp = sdp;
},
toString: function() {