power-assert-js / power-assert

Power Assert in JavaScript. Provides descriptive assertion messages through standard assert interface. No API is the best API.
MIT License
2.81k stars 68 forks source link

Inconsistency with Node.js #123

Open falsandtru opened 4 years ago

falsandtru commented 4 years ago

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);
petamoriken commented 3 years ago

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

petamoriken commented 3 years ago

created an issue: https://github.com/browserify/browserify/issues/2015