Intent-Code Divergence
High
- Confidence
- 98% confidence
- Finding
- The embedded Python implementation initializes the PATTERNS dictionary using _build_js_path_patterns() before that function is defined, which would raise a NameError at import/runtime and prevent the scanner from running. In a security tool, this fail-open operational break is dangerous because users may believe path traversal checks are being performed when the audit script actually crashes or never executes successfully.
