| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #1735 +/- ##
=======================================
Coverage 63.69% 63.69%
=======================================
Files 3 3
Lines 2063 2063
Branches 730 730
=======================================
Hits 1314 1314
Misses 162 162
Partials 587 587 ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
|
The CI failure is nodejs/node-gyp#3327 |
Sorry, something went wrong.
| std::vector<napi_value>& propertyNames, | ||
| std::vector<napi_value>& propertyValues) { | ||
| if (propertyNames.size() != propertyValues.size()) { | ||
| Napi::Error::New(env, "Mismatch in size of property names and values") |
There was a problem hiding this comment.
This should prefer NAPI_THROW to throw as a c++ exception when it is enabled:
| Napi::Error::New(env, "Mismatch in size of property names and values") | |
| NAPI_THROW( | |
| Napi::Error::New(env, "Mismatch in size of property names and values"), | |
| Object()); |
Sorry, something went wrong.
| std::vector<napi_value>& propertyNames, ///< Property names | ||
| std::vector<napi_value>& propertyValues ///< Property values |
There was a problem hiding this comment.
This could take const vectors:
| std::vector<napi_value>& propertyNames, ///< Property names | |
| std::vector<napi_value>& propertyValues ///< Property values | |
| const std::vector<napi_value>& propertyNames, ///< Property names | |
| const std::vector<napi_value>& propertyValues ///< Property values |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Add Object::New overload utilizing node_api_create_object_with_properties