inheritance-debugging
CommunityFix constructor inheritance bugs
Authormetabench
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers debug and fix common JavaScript inheritance issues where subclass properties are accessed before they are initialized in the constructor chain, preventing runtime errors.
Core Features & Use Cases
- Diagnose Errors: Identifies issues like "undefined is not iterable" and NaN calculations stemming from incorrect initialization order.
- Implement Fixes: Guides users to add fallback defaults in render methods and ensure proper super() initialization.
- Verify Solutions: Provides steps for incremental testing and final verification with unit tests and browser subagents.
- Use Case: Resolve "undefined is not iterable" errors in chart rendering caused by accessing subclass properties before
super()completes its execution.
Quick Start
Use the inheritance-debugging skill to fix constructor inheritance issues in the Bar_Chart.js file.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: inheritance-debugging Download link: https://github.com/metabench/jsgui3-html/archive/main.zip#inheritance-debugging Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.