Skip to content
Craig Minihan edited this page Apr 20, 2015 · 15 revisions

libjsapi is a C++ 11 library which aims to make it much easier to deal with the SpiderMonkey JSAPI.

Currently libjsapi targets SpiderMonkey 31 only. Since JSAPI is a bit of a movable feast we have decided to keep things simple by just targeting a single released version. When version 38 is released libjsapi will be updated to support that version.

It will help you greatly to understand JSAPI before you use libjsapi - but that is not a requirement. If you just want basic JS support in your application then you can probably get through with just knowledge of libjsapi from the documentation here.

To use libjsapi effectively you will need an understanding of the following JSAPI concepts:

  • Runtimes
  • Contexts
  • Scripts
  • JS::Value, JS::Root and JS::Handle
  • Value, Object and DynamicObject