assert: introduce `deepStrictEqual`
authorVladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
Wed, 28 Jan 2015 16:48:56 +0000 (19:48 +0300)
committerVladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
Mon, 9 Feb 2015 11:14:20 +0000 (14:14 +0300)
commit3f473ef141fdc7059928ebc4542b00e2f126ab07
treedff0ed5f3489c12e23edfc7439f1684ef7eba72f
parent828d19a1f696840acf43b70125b85b0d61ff5056
assert: introduce `deepStrictEqual`

`deepStrictEqual` works the same way as `strictEqual`, but
uses `===` to compare primitives and requires prototypes of
equal objects to be the same object.

Fixes: https://github.com/joyent/node/issues/7161
Fixes: https://github.com/iojs/io.js/issues/620
PR-URL: https://github.com/iojs/io.js/pull/639
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-by: Rod Vagg <rod@vagg.org>
doc/api/assert.markdown
lib/assert.js
test/parallel/test-assert.js