Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Issue 1866693002: Allow to pass a user message to assert functions (Closed)

Created:
4 years, 8 months ago by Clemens Hammacher
Modified:
4 years, 8 months ago
Reviewers:
titzer, JF
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Allow to pass a user message to assert functions Nothing too important, but it helps localizing the cause of an error much faster. By the way, I also changed the output for assertThrows and assertDoesNotThrow a bit. All new arguments are optional, so everything is backwards compatible. R=jfb@chromium.org, titzer@chromium.org BUG= Committed: https://crrev.com/b4edd2f6587d42f003a84fe87a137f13415d8542 Cr-Commit-Position: refs/heads/master@{#35322}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments, no semantical changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -19 lines) Patch
M test/intl/assert.js View 1 4 chunks +18 lines, -19 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Clemens Hammacher
4 years, 8 months ago (2016-04-06 15:55:56 UTC) #1
JF
lgtm otherwise https://codereview.chromium.org/1866693002/diff/1/test/intl/assert.js File test/intl/assert.js (right): https://codereview.chromium.org/1866693002/diff/1/test/intl/assert.js#newcode95 test/intl/assert.js:95: var message = 'Failure' + (user_message ? ...
4 years, 8 months ago (2016-04-06 17:00:21 UTC) #2
titzer
lgtm https://codereview.chromium.org/1866693002/diff/1/test/intl/assert.js File test/intl/assert.js (right): https://codereview.chromium.org/1866693002/diff/1/test/intl/assert.js#newcode128 test/intl/assert.js:128: * Returns if the code throws the specified ...
4 years, 8 months ago (2016-04-06 18:22:11 UTC) #3
Clemens Hammacher
Thanks for the comments. I will upload a new patch and commit it right away ...
4 years, 8 months ago (2016-04-07 07:42:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1866693002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1866693002/20001
4 years, 8 months ago (2016-04-07 07:51:33 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-07 08:14:56 UTC) #8
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 08:16:13 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b4edd2f6587d42f003a84fe87a137f13415d8542
Cr-Commit-Position: refs/heads/master@{#35322}

Powered by Google App Engine
This is Rietveld 408576698