power-assert-js/power-assert

Inconsistency with Node.js

falsandtru opened this issue · 2 comments

Looks like now assertion APIs of Node.js such as assert.strictEqual and assert.deepStrictEqual can compare NaN but power-assert is not.

// Node.js: undefined
// power-assert (on browsers): Exception
assert.strictEqual(NaN, NaN);

The problem seems to be caused by browserify's dependency on the old assert@v1.