implementing-jsc-classes-cpp
Installation
SKILL.md
Implementing JavaScript Classes in C++
Class Structure
For publicly accessible Constructor and Prototype, create 3 classes:
class Foo : public JSC::DestructibleObject- if C++ fields exist; otherwise useJSC::constructEmptyObjectwithputDirectOffsetclass FooPrototype : public JSC::JSNonFinalObjectclass FooConstructor : public JSC::InternalFunction
No public constructor? Only Prototype and class needed.
Iso Subspaces
Classes with C++ fields need subspaces in:
src/jsc/bindings/webcore/DOMClientIsoSubspaces.hsrc/jsc/bindings/webcore/DOMIsoSubspaces.h