<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/node.git/lib/assert.js, branch move-debugger-tests</title>
<subtitle>github.com: joyent/node.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/'/>
<entry>
<title>assert: indicate if exception message is generated</title>
<updated>2013-10-11T17:15:03+00:00</updated>
<author>
<name>Glen Mailer</name>
<email>glenjamin@gmail.com</email>
</author>
<published>2013-09-11T16:18:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=66b8c3c5a03717f3ddc0399c063713e7f6f4ad10'/>
<id>66b8c3c5a03717f3ddc0399c063713e7f6f4ad10</id>
<content type='text'>
AssertionError.generatedMessage is now true when
AssertionError.message was generated from expected and actual

Fixes #5836, #6206
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
AssertionError.generatedMessage is now true when
AssertionError.message was generated from expected and actual

Fixes #5836, #6206
</pre>
</div>
</content>
</entry>
<entry>
<title>src: Replace macros with util functions</title>
<updated>2013-08-01T22:08:01+00:00</updated>
<author>
<name>isaacs</name>
<email>i@izs.me</email>
</author>
<published>2013-07-26T21:38:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=22c68fdc1dae40f0ed9c71a02f66e5b2c6353691'/>
<id>22c68fdc1dae40f0ed9c71a02f66e5b2c6353691</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>assert: replace !!!value with just !value</title>
<updated>2013-07-30T11:29:20+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2013-07-30T11:28:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=dc9acd4faeba1aade414bdd8da28f30b16773575'/>
<id>dc9acd4faeba1aade414bdd8da28f30b16773575</id>
<content type='text'>
Not harmful, just code cleanup.

Fixes #5885.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Not harmful, just code cleanup.

Fixes #5885.
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: macro-ify type checks</title>
<updated>2013-07-24T19:49:35+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2013-07-24T16:03:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=0330bdf5195eb77f04c26a09a8bd2088a261fe53'/>
<id>0330bdf5195eb77f04c26a09a8bd2088a261fe53</id>
<content type='text'>
Increases the grep factor. Makes it easier to harmonize type checks
across the code base.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Increases the grep factor. Makes it easier to harmonize type checks
across the code base.
</pre>
</div>
</content>
</entry>
<entry>
<title>lint</title>
<updated>2013-04-19T23:25:11+00:00</updated>
<author>
<name>isaacs</name>
<email>i@izs.me</email>
</author>
<published>2013-04-19T23:25:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=c77312405e045037bd856f2b5b05d1de28159b25'/>
<id>c77312405e045037bd856f2b5b05d1de28159b25</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>assert: put info in err.message, not err.name</title>
<updated>2013-04-18T22:08:35+00:00</updated>
<author>
<name>Ryan Doenges</name>
<email>rhdoenges@gmail.com</email>
</author>
<published>2013-04-14T01:48:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=6101eb184db77d0b11eb96e48744e57ecce4b73d'/>
<id>6101eb184db77d0b11eb96e48744e57ecce4b73d</id>
<content type='text'>
4716dc6 made assert.equal() and related functions work better by
generating a better toString() from the expected, actual, and operator
values passed to fail(). Unfortunately, this was accomplished by putting
the generated message into the error's `name` property. When you passed
in a custom error message, the error would put the custom error into
`name` *and* `message`, resulting in helpful string representations like
"AssertionError: Oh no: Oh no".

This commit resolves that issue by storing the generated message in the
`message` property while leaving the error's name alone and adding
a regression test so that this doesn't pop back up later.

Closes #5292.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
4716dc6 made assert.equal() and related functions work better by
generating a better toString() from the expected, actual, and operator
values passed to fail(). Unfortunately, this was accomplished by putting
the generated message into the error's `name` property. When you passed
in a custom error message, the error would put the custom error into
`name` *and* `message`, resulting in helpful string representations like
"AssertionError: Oh no: Oh no".

This commit resolves that issue by storing the generated message in the
`message` property while leaving the error's name alone and adding
a regression test so that this doesn't pop back up later.

Closes #5292.
</pre>
</div>
</content>
</entry>
<entry>
<title>assert: Simplify AssertError creation</title>
<updated>2013-04-03T16:52:56+00:00</updated>
<author>
<name>isaacs</name>
<email>i@izs.me</email>
</author>
<published>2013-04-03T16:43:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=4716dc662d8d24d4d454dd4459ff724588e98eb1'/>
<id>4716dc662d8d24d4d454dd4459ff724588e98eb1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>assert: improve support for new execution contexts</title>
<updated>2012-12-29T19:19:14+00:00</updated>
<author>
<name>lukebayes</name>
<email>lbayes@patternpark.com</email>
</author>
<published>2011-02-20T23:09:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=ae1b0ca7a598438330854ccd83bae13db3e7d2b0'/>
<id>ae1b0ca7a598438330854ccd83bae13db3e7d2b0</id>
<content type='text'>
More detailed information in GH-693
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
More detailed information in GH-693
</pre>
</div>
</content>
</entry>
<entry>
<title>doc: update assert.doesNotThrow() docs</title>
<updated>2012-08-29T00:36:22+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2012-08-29T00:30:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=e4cef1a0833e6d677298600e205a142d15639bf2'/>
<id>e4cef1a0833e6d677298600e205a142d15639bf2</id>
<content type='text'>
It takes an optional "expected exception" argument that is not used meaningfully
but is nevertheless documented. Undocument it, it confuses casual readers of the
documentation.

Fixes #3935.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It takes an optional "expected exception" argument that is not used meaningfully
but is nevertheless documented. Undocument it, it confuses casual readers of the
documentation.

Fixes #3935.
</pre>
</div>
</content>
</entry>
<entry>
<title>assert: fix throws() throws an error without message property</title>
<updated>2012-07-29T10:48:16+00:00</updated>
<author>
<name>koichik</name>
<email>koichik@improvement.jp</email>
</author>
<published>2012-03-24T07:00:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=72bc4dcda4cfa99ed064419e40d104bd1b2e0e25'/>
<id>72bc4dcda4cfa99ed064419e40d104bd1b2e0e25</id>
<content type='text'>
Fixes #2893.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #2893.
</pre>
</div>
</content>
</entry>
</feed>
