Superxwolf / JavascriptCorePP

JavaScriptCore++ - A simple C++ 17 wrapper for JavaScriptCore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaScriptCore++

JavaScriptCore++ - A simple C++ 17 wrapper for JavaScriptCore

Build the static library using cmake

How to use

View the example folder for example code

Value Lifetime

All classes in this library follow the RAII principle. JavaScriptCore values will be retain for the remainder of the object's lifetime.

When a class (ej. JSValue) is copied, it will keep the same reference to the underlying JavaScriptCore value

All values also store their JSContext, so they can be used elsewhere without mantaining the JSContext around.

About

JavaScriptCore++ - A simple C++ 17 wrapper for JavaScriptCore

License:MIT License


Languages

Language:C 66.7%Language:C++ 27.3%Language:Objective-C 5.3%Language:CMake 0.7%