Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: inject.preload.js

Issue 29503619: Noissue - Throw TypeError when RTCPeerConnection called without new operator (Closed)
Patch Set: Created Aug. 2, 2017, 4:58 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: inject.preload.js
diff --git a/inject.preload.js b/inject.preload.js
index 816f32e59c6670c02cd8ffdd3b6765192dd7d4cf..ce765d685f4019e88002d191f24d1bfdbb0d7dee 100644
--- a/inject.preload.js
+++ b/inject.preload.js
@@ -359,7 +359,7 @@ function injected(eventName, injectedIntoContentWindow)
function WrappedRTCPeerConnection(...args)
{
if (!(this instanceof WrappedRTCPeerConnection))
- return WrappedRTCPeerConnection();
+ return RealRTCPeerConnection();
let configuration = protectConfiguration(args[0]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld