Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Fix isPrototypeOf assert #2

Closed
wants to merge 1 commit into from

Conversation

maxcnunes
Copy link

No description provided.

@novemberborn
Copy link

This package tracks https://nodejs.org/api/assert.html. The return false change was made intentionally: nodejs/node#4166

Without thinking too hard about your change, it should be dealt with in Node.js first before it can land here.

@maxcnunes
Copy link
Author

Alright, if (Error.isPrototypeOf(expected)) was included to accommodate ES6 classes that extend Error. But that should return true instead of false. Or I am misunderstanding that code really badly 😕
I will bubble this up to node project.

@novemberborn
Copy link

Note that even if this line is correct, there might be something else out of sync between this module and Node.js itself.

That said, with regards to AVA, we won't be adding workarounds for core-asserts behavior, since we need to move away from it entirely. All we can do here is bring core-assert in line with Node.js.

@maxcnunes
Copy link
Author

Ok. So lets close it and I can open another issue in case the Node assert module gets updated.

@maxcnunes maxcnunes closed this Aug 28, 2017
@maxcnunes maxcnunes deleted the fix-is-prototype-of branch August 28, 2017 12:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants