Skip to content

Commit

Permalink
mute errors on constructor missing arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mildsunrise authored and murillo128 committed Sep 13, 2023
1 parent 7da3321 commit 2252269
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ICEInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class ICEInfo
ICEInfo.generate = function(lite)
{
//Create ICE info for media
//@ts-expect-error
const info = new ICEInfo();
//Create key and pwd bytes
const frag = randomBytes(8);
Expand Down
3 changes: 3 additions & 0 deletions lib/SDPInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ class SDPInfo
*/
answer(params) {
//Create local SDP info
//@ts-expect-error
const answer = new SDPInfo();

//Add ice
Expand Down Expand Up @@ -1107,6 +1108,7 @@ class SDPInfo
SDPInfo.create = function(params)
{
//Create local SDP info
//@ts-expect-error
const sdp = new SDPInfo();

//Add ice
Expand Down Expand Up @@ -1263,6 +1265,7 @@ SDPInfo.parse = function(string)
const sdp = SDPTransform.parse(string);

//Create sdp info object
//@ts-expect-error
const sdpInfo = new SDPInfo();

//Set version
Expand Down

0 comments on commit 2252269

Please sign in to comment.