Commit 3c91426
Fix safe handling of constructor null values (#142)
* Fix safe handling of constructor null values
Add defensive null checking in scan function to prevent potential TypeError
when constructor property is set to null. This addresses issue #141 where
accessing constructor.prototype could fail if constructor is null.
Changes:
- Enhanced scan function with safe constructor value checking
- Added test case for constructor null handling
- Maintains existing security behavior and test coverage
Fixes #141
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Matteo Collina <[email protected]>
* Fix linting issues and update CLAUDE.md
- Remove trailing spaces in test file to satisfy neostandard linting
- Update CLAUDE.md with current project structure and tooling:
* Changed from standard to neostandard with ESLint 9
* Updated test commands and structure (test/ directory)
* Added TypeScript support information
* Enhanced security details about constructor.prototype handling
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Matteo Collina <[email protected]>
* Remove CLAUDE.md from tracking and update .gitignore
- Remove CLAUDE.md from git tracking while keeping local copy
- Add CLAUDE.md and .claude directory to .gitignore
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Matteo Collina <[email protected]>
---------
Signed-off-by: Matteo Collina <[email protected]>
Co-authored-by: Claude <[email protected]>1 parent 154751b commit 3c91426
3 files changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
260 | 281 | | |
261 | 282 | | |
262 | 283 | | |
| |||
0 commit comments