What problem does it solve?
Adding a new method to the JSI Runtime interface requires coordinated changes across more than a dozen files spanning JSI core, the Hermes implementation, and SynthTrace replay infrastructure, and missing any one of them causes build failures or broken trace replays.
Core Features & Use Cases
- Complete File Checklist: Enumerates all 16 files to modify across JSI core (jsi.h, jsi.cpp, decorator.h), Hermes (hermes.cpp), and SynthTrace (records, parsing, replay).
- Implementation Patterns: Provides code templates for default JavaScript-based implementations versus pure virtual methods, plus optimized Hermes VM implementations.
- Testing Guidance: Covers JSI core tests, Hermes API tests, and SynthTrace serialization, parser, and replay tests with buck test commands.
- Use Case: When asked to add a method like setPrototypeOf to the JSI Runtime, follow the step-by-step guide to update the interface, decorators, Hermes implementation, and SynthTrace support with correct conventions.
Quick Start
Add a new method called myNewMethod to the JSI Runtime interface with full Hermes and SynthTrace support.