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

Issue 29503619: Noissue - Throw TypeError when RTCPeerConnection called without new operator (Closed)

Created:
Aug. 2, 2017, 4:58 p.m. by kzar
Modified:
Aug. 3, 2017, 4:17 p.m.
Reviewers:
Manish Jethani
CC:
Sebastian Noack
Visibility:
Public.

Description

Noissue - Throw TypeError when RTCPeerConnection called without new operator

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M inject.preload.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2
kzar
Patch Set 1 Whilst investigating #5382 I noticed this mistake. Instead of throwing TypeError when ...
Aug. 2, 2017, 5:01 p.m. (2017-08-02 17:01:26 UTC) #1
Manish Jethani
Aug. 3, 2017, 9:51 a.m. (2017-08-03 09:51:25 UTC) #2
On 2017/08/02 17:01:26, kzar wrote:
> Patch Set 1
> 
> Whilst investigating #5382 I noticed this mistake. Instead of throwing
TypeError
> when the RTCPeerConnection constructor was called without using the 'new'
> operator, we were accidentally recursing until the stack was blown. (For an
> example of how it should work see the wrapped WebSocket constructor earlier in
> the code.)

LGTM

Powered by Google App Engine
This is Rietveld