Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency with Node.js #123

Open
falsandtru opened this issue Mar 5, 2020 · 2 comments
Open

Inconsistency with Node.js #123

falsandtru opened this issue Mar 5, 2020 · 2 comments

Comments

@falsandtru
Copy link
Contributor

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
Copy link
Contributor

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

@petamoriken
Copy link
Contributor

created an issue: browserify/browserify#2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants