Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

fix assert() spec #9003

Closed
wants to merge 1 commit into from
Closed

fix assert() spec #9003

wants to merge 1 commit into from

Conversation

bsnote
Copy link

@bsnote bsnote commented Jan 9, 2015

"message" argument is optional for both assert() and assert.ok().

"message" argument is optional for both assert() and assert.ok().
@cjihrig
Copy link

cjihrig commented Jan 9, 2015

They are the same function, so it makes sense. LGTM

@trevnorris
Copy link

LGTM. @cjihrig feel free to merge.

cjihrig pushed a commit that referenced this pull request Jan 20, 2015
The message argument is optional for both assert() and
assert.ok(). This commit makes message optional for assert().

PR-URL: #9003
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
cjihrig pushed a commit that referenced this pull request Jan 20, 2015
The message argument is optional for both assert() and
assert.ok(). This commit makes message optional for assert().

PR-URL: #9003
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@cjihrig
Copy link

cjihrig commented Jan 20, 2015

Thanks! Landed in 0.10 in e45c52c. Landed in 0.12 in 430096a. There was a documentation update in 0.12 to use correct notation for optional arguments. I amended this in 0.12 to use that notation.

@cjihrig cjihrig closed this Jan 20, 2015
cjihrig pushed a commit to nodejs/node that referenced this pull request Feb 13, 2015
The message argument is optional for both assert() and
assert.ok(). This commit makes message optional for assert().

PR-URL: nodejs/node-v0.x-archive#9003
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
jBarz pushed a commit to ibmruntimes/node that referenced this pull request May 11, 2017
Allows Symbol to be converted to String so it can be included in the
error.

Conflicts:
	lib/events.js

Fixes: nodejs#9003
Backport-PR-URL: nodejs/node#12459
PR-URL: nodejs/node#9021
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
andrew749 pushed a commit to michielbaird/node that referenced this pull request Jul 19, 2017
Allows Symbol to be converted to String so it can be included in the
error.

Conflicts:
	lib/events.js

Fixes: nodejs#9003
Backport-PR-URL: nodejs/node#12459
PR-URL: nodejs/node#9021
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants