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

Add tests for type casts and coercions #194

Merged
merged 1 commit into from
Mar 23, 2017

Conversation

jasongin
Copy link
Member

For #191

It turns out all our type casts and coercions were implemented correctly (since I had checked the V8 behavior when I coded them). This change adds a new tests/addons-napi/test_conversions project to validate all the permutations. Also I added some comments in the node_api.cc code where it was unclear to reviewers that it was doing the right thing.

@jasongin
Copy link
Member Author

boingoing

This comment was marked as off-topic.

@jasongin
Copy link
Member Author

@jasongin jasongin merged commit 6028af3 into nodejs:api-prototype-8.x Mar 23, 2017
@jasongin jasongin deleted the conversions branch March 25, 2017 01:53
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

Successfully merging this pull request may close these issues.

2 participants