Skip to content

feat: port test_general testInstanceOf to CTS - #74

Open
bavulapati wants to merge 2 commits into
nodejs:mainfrom
bavulapati:feat/port-test-general-instance-of
Open

feat: port test_general testInstanceOf to CTS#74
bavulapati wants to merge 2 commits into
nodejs:mainfrom
bavulapati:feat/port-test-general-instance-of

Conversation

@bavulapati

Copy link
Copy Markdown
Contributor

Ports testInstanceOf.js and adds the doInstanceOf binding: napi_instanceof must agree with the instanceof operator, including when a constructor overrides Symbol.hasInstance.

Upstream guards the whole file on Symbol.hasInstance existing; dropped, since the CTS targets engines where it is guaranteed.

Stacked on #72 - review that first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Need Triage

Development

Successfully merging this pull request may close these issues.

1 participant