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

Issue 29582713: Issue 4579 - Wrap rejection reason in Error object (Closed)

Created:
Oct. 19, 2017, 12:29 a.m. by Manish Jethani
Modified:
Oct. 20, 2017, 10:51 a.m.
Base URL:
https://hg.adblockplus.org/adblockpluschrome/
Visibility:
Public.

Description

Issue 4579 - Wrap rejection reason in Error object

Patch Set 1 #

Total comments: 10

Patch Set 2 : Remove unnecessary code #

Total comments: 4

Patch Set 3 : Add stack trace only on Chrome #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M polyfill.js View 1 2 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 12
Manish Jethani
Oct. 19, 2017, 12:29 a.m. (2017-10-19 00:29:23 UTC) #1
Manish Jethani
Patch Set 1 https://codereview.adblockplus.org/29582713/diff/29582714/polyfill.js File polyfill.js (right): https://codereview.adblockplus.org/29582713/diff/29582714/polyfill.js#newcode89 polyfill.js:89: error.stack = callStack.replace(/^Error\n {4}at Object\./, The ...
Oct. 19, 2017, 12:32 a.m. (2017-10-19 00:32:13 UTC) #2
Sebastian Noack
https://codereview.adblockplus.org/29582713/diff/29582714/polyfill.js File polyfill.js (right): https://codereview.adblockplus.org/29582713/diff/29582714/polyfill.js#newcode85 polyfill.js:85: if (!(error instanceof Error)) Why checking whether it is ...
Oct. 19, 2017, 4:30 a.m. (2017-10-19 04:30:24 UTC) #3
Wladimir Palant
I mostly agree with Sebastian, with one exception. https://codereview.adblockplus.org/29582713/diff/29582714/polyfill.js File polyfill.js (right): https://codereview.adblockplus.org/29582713/diff/29582714/polyfill.js#newcode89 polyfill.js:89: error.stack ...
Oct. 19, 2017, 7:51 a.m. (2017-10-19 07:51:35 UTC) #4
Manish Jethani
Patch Set 2: Remove unnecessary code https://codereview.adblockplus.org/29582713/diff/29582714/polyfill.js File polyfill.js (right): https://codereview.adblockplus.org/29582713/diff/29582714/polyfill.js#newcode85 polyfill.js:85: if (!(error instanceof ...
Oct. 19, 2017, 9:35 a.m. (2017-10-19 09:35:40 UTC) #5
Manish Jethani
https://codereview.adblockplus.org/29582713/diff/29582714/polyfill.js File polyfill.js (right): https://codereview.adblockplus.org/29582713/diff/29582714/polyfill.js#newcode85 polyfill.js:85: if (!(error instanceof Error)) On 2017/10/19 09:35:39, Manish Jethani ...
Oct. 19, 2017, 9:37 a.m. (2017-10-19 09:37:39 UTC) #6
kzar
LGTM
Oct. 19, 2017, 10:09 a.m. (2017-10-19 10:09:18 UTC) #7
kzar
(By the way, have you been testing this on top of the webpack changes? The ...
Oct. 19, 2017, 10:15 a.m. (2017-10-19 10:15:09 UTC) #8
Sebastian Noack
https://codereview.adblockplus.org/29582713/diff/29583555/polyfill.js File polyfill.js (right): https://codereview.adblockplus.org/29582713/diff/29583555/polyfill.js#newcode84 polyfill.js:84: // message property. Perhaps, this comment could be a ...
Oct. 19, 2017, 6:09 p.m. (2017-10-19 18:09:57 UTC) #9
Manish Jethani
Patch Set 3: Add stack trace only on Chrome https://codereview.adblockplus.org/29582713/diff/29583555/polyfill.js File polyfill.js (right): https://codereview.adblockplus.org/29582713/diff/29583555/polyfill.js#newcode84 polyfill.js:84: ...
Oct. 20, 2017, 12:04 a.m. (2017-10-20 00:04:24 UTC) #10
Sebastian Noack
LGTM
Oct. 20, 2017, 1:22 a.m. (2017-10-20 01:22:11 UTC) #11
Wladimir Palant
Oct. 20, 2017, 10:51 a.m. (2017-10-20 10:51:25 UTC) #12
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld