Fix safe handling of constructor null values#142
Merged
Conversation
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 <noreply@anthropic.com> Signed-off-by: Matteo Collina <hello@matteocollina.com>
Resolves merge conflicts by integrating the enhanced constructor.prototype checking from main branch with safe null handling for issue #141. Changes: - Added null checks before accessing constructor.prototype - Enhanced test coverage for constructor null scenarios - Maintains compatibility with new main branch structure Fixes #141 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Matteo Collina <hello@matteocollina.com>
- 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 <noreply@anthropic.com> Signed-off-by: Matteo Collina <hello@matteocollina.com>
Uzlopak
reviewed
May 31, 2025
- 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 <noreply@anthropic.com> Signed-off-by: Matteo Collina <hello@matteocollina.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code