Toolverse
All skills

implementing-jsc-classes-cpp

by oven-sh

Implements JavaScript classes in C++ using JavaScriptCore. Use when creating new JS classes with C++ bindings, prototypes, or constructors.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
oven-sh
Category
UX / Design
Views
2

About this skill

Implements JavaScript classes in C++ using JavaScriptCore. Use when creating new JS classes with C++ bindings, prototypes, or constructors.

How to use

  1. Utwórz trzy klasy C++: główną klasę dziedziczącą po JSC::DestructibleObject (jeśli masz pola C++) lub użyj JSC::constructEmptyObject, klasę Prototype dziedziczącą po JSC::JSNonFinalObject oraz klasę Constructor dziedziczącą po JSC::InternalFunction. Jeśli klasa nie ma publicznego konstruktora, wystarczą tylko Prototype i klasa główna.
  2. Jeśli twoja klasa posiada pola C++, dodaj definicję subspaces w plikach DOMClientIsoSubspaces.h i DOMIsoSubspaces.h, używając szablonu subspaceFor z obsługą trybu Concurrently.
  3. Zdefiniuj właściwości i metody za pomocą makr JSC_DECLARE_HOST_FUNCTION dla metod oraz JSC_DECLARE_CUSTOM_GETTER dla getterów właściwości.
  4. Utwórz tablicę HashTableValue zawierającą definicje wszystkich właściwości i metod z odpowiednimi atrybutami (ReadOnly, CustomAccessor itp.) oraz wskaźnikami na funkcje implementujące te elementy.
  5. Zarejestruj tabelę właściwości w prototypie klasy, aby udostępnić je kodem JavaScript.

Related skills

ux-writing

by content-designer

Create user-centered, accessible interface copy (microcopy) for digital products including buttons, labels, error messages, notifications, forms, onboarding, empty states, success messages, and help text. Use when writing or editing any text that appears in apps, websites, or

UX / Design
24114

market-sizing-analysis

by wshobson

This skill should be used when the user asks to \

UX / Design
4791

responsive-design

by wshobson

Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.

UX / Design
1766

figma-integration

by duongdev

Guides design-to-code workflow using Figma integration. Helps extract designs, analyze components, and generate implementation specs. Auto-activates when users mention Figma URLs, design implementation, component conversion, or design-to-code workflows. Works with

UX / Design
18121

writing-rap-lyrics

by asvskartheek

Helps write rap lyrics with proper rhythm, flow, cadences, and structure. Teaches musical fundamentals (bars, beats, tempo, BPM) and lyric formatting. Use when writing rap lyrics, creating verses, understanding flow, structuring bars, improving cadence, learning rhythm patterns,

UX / Design
21102

sound-engineer

by erichowens

Expert audio engineer specializing in spatial audio, procedural sound design, interactive audio systems, and real-time DSP

UX / Design
14102