Commit a18e27df authored by Octavian Soldea's avatar Octavian Soldea Committed by Gabriel Schulhof
Browse files

src: add napi_define_class() null checks

napi_define_class is tested by passing NULL to all parameters that are
pointers, one at a time. Moreover, two bugs were corrected. One was
utf8name and the second was the property descriptor pointer. These
pointers were assumed to be non-NULL and now we have NULL checks.

PR-URL: https://github.com/nodejs/node/pull/27945


Reviewed-By: default avatarGabriel Schulhof <gabriel.schulhof@intel.com>
parent 9611d759
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment