Open falsandtru opened 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.
assert.strictEqual
assert.deepStrictEqual
// 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.
created an issue: https://github.com/browserify/browserify/issues/2015
Looks like now assertion APIs of Node.js such as
assert.strictEqual
andassert.deepStrictEqual
can compare NaN but power-assert is not.