Embedding the JavaScript in C (SpiderMonkey) Engine

Introduction

Agenda

Data Structures

Objects

Properties

Functions

Scripts

Other data structures

The Global Object

Garbage Collector Interaction

Thread Safe Embedding

Cleanup  and Shutdown

Compiled Applications

Precompiling Scripts to XDR

Loading XDR’ed Scripts

LiveConnect Support

LiveConnect Callbacks

LiveConnect Initialization

Attach Thread/Context to LC

Detach Thread/Context from LC

Checkout and Build

Summary

References