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

Issue 29622595: Issue 6090 - Properly use regexp for message matching and proper console override (Closed)

Created:
Nov. 28, 2017, 3:28 p.m. by hub
Modified:
Nov. 29, 2017, 8:02 p.m.
Reviewers:
sergei, Wladimir Palant
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Issue 6090 - Properly use regexp for message matching and proper console override

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix a syntax error. #

Total comments: 5

Patch Set 3 : Properly handle non-string arguments for console.*() #

Total comments: 9

Patch Set 4 : Properly handle args #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -14 lines) Patch
M test/_common.js View 1 2 3 2 chunks +14 lines, -14 lines 0 comments Download

Messages

Total messages: 12
hub
Nov. 28, 2017, 3:29 p.m. (2017-11-28 15:29:02 UTC) #1
sergei
https://codereview.adblockplus.org/29622595/diff/29622596/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29622595/diff/29622596/test/_common.js#newcode440 test/_common.js:440: console.error = s => should not we wrap even ...
Nov. 28, 2017, 3:46 p.m. (2017-11-28 15:46:22 UTC) #2
hub
https://codereview.adblockplus.org/29622595/diff/29622596/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29622595/diff/29622596/test/_common.js#newcode440 test/_common.js:440: console.error = s => On 2017/11/28 15:46:22, sergei wrote: ...
Nov. 28, 2017, 3:54 p.m. (2017-11-28 15:54:20 UTC) #3
hub
https://codereview.adblockplus.org/29622595/diff/29622604/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29622595/diff/29622604/test/_common.js#newcode438 test/_common.js:438: let msgMatch = new RegExp("^Error: (.*)[\r\n]"); Another alternative is: ...
Nov. 28, 2017, 7:49 p.m. (2017-11-28 19:49:45 UTC) #4
Wladimir Palant
https://codereview.adblockplus.org/29622595/diff/29622604/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29622595/diff/29622604/test/_common.js#newcode438 test/_common.js:438: let msgMatch = new RegExp("^Error: (.*)[\r\n]"); So, what about ...
Nov. 28, 2017, 8 p.m. (2017-11-28 20:00:57 UTC) #5
sergei
LGTM
Nov. 28, 2017, 8:01 p.m. (2017-11-28 20:01:10 UTC) #6
sergei
https://codereview.adblockplus.org/29622595/diff/29622604/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29622595/diff/29622604/test/_common.js#newcode440 test/_common.js:440: console.error = s => On 2017/11/28 20:00:57, Wladimir Palant ...
Nov. 28, 2017, 8:34 p.m. (2017-11-28 20:34:25 UTC) #7
hub
https://codereview.adblockplus.org/29622595/diff/29622604/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29622595/diff/29622604/test/_common.js#newcode440 test/_common.js:440: console.error = s => On 2017/11/28 20:00:57, Wladimir Palant ...
Nov. 28, 2017, 8:54 p.m. (2017-11-28 20:54:33 UTC) #8
sergei
https://codereview.adblockplus.org/29622595/diff/29622617/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29622595/diff/29622617/test/_common.js#newcode424 test/_common.js:424: if (typeof args[0] === "string") To be consistent with ...
Nov. 29, 2017, 9:31 a.m. (2017-11-29 09:31:54 UTC) #9
Wladimir Palant
https://codereview.adblockplus.org/29622595/diff/29622617/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29622595/diff/29622617/test/_common.js#newcode427 test/_common.js:427: s = args[0].message; On 2017/11/29 09:31:54, sergei wrote: > ...
Nov. 29, 2017, 10:27 a.m. (2017-11-29 10:27:31 UTC) #10
hub
https://codereview.adblockplus.org/29622595/diff/29622617/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29622595/diff/29622617/test/_common.js#newcode427 test/_common.js:427: s = args[0].message; On 2017/11/29 10:27:31, Wladimir Palant wrote: ...
Nov. 29, 2017, 3:22 p.m. (2017-11-29 15:22:32 UTC) #11
Wladimir Palant
Nov. 29, 2017, 6:45 p.m. (2017-11-29 18:45:56 UTC) #12
LGTM

Powered by Google App Engine
This is Rietveld