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

test: add n-api null checks for conversions #34142

Commits on Jun 30, 2020

  1. test: add n-api null checks for conversions

    Add assertions that conversion and coercion N-APIs return appropriate
    error statuses when given `NULL`s for parameters they expect to not be
    `NULL`.
    
    For `napi_get_value_string_*` this also checks that it returns
    `napi_string_expected` when passed a `napi_value` not containing a
    string.
    Gabriel Schulhof committed Jun 30, 2020
    Copy the full SHA
    06a9867 View commit details
    Browse the repository at this point in the history