This repository was archived by the owner on Jul 8, 2026. It is now read-only.
Commit e9647df
committed
fix: improve null value handling in object type check
- Updated the `isLikelyObject` function to use `napi_strict_equals` for null value comparison instead of `napi_is_null`, enhancing the accuracy of object type detection.
- Introduced a new variable to hold the null value, improving code clarity and maintainability.
These changes aim to ensure more reliable type checking within the property tree addon.1 parent ee791ab commit e9647df
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
0 commit comments