PythonMonkey   v1.1.1 (dev)
Loading...
Searching...
No Matches
JSObjectProxy.cc File Reference

JSObjectProxy is a custom C-implemented python type that derives from dict. It acts as a proxy for JSObjects from Spidermonkey, and behaves like a dict would. More...

#include "include/JSObjectProxy.hh"
#include "include/JSObjectIterProxy.hh"
#include "include/JSObjectKeysProxy.hh"
#include "include/JSObjectValuesProxy.hh"
#include "include/JSObjectItemsProxy.hh"
#include "include/modules/pythonmonkey/pythonmonkey.hh"
#include "include/jsTypeFactory.hh"
#include "include/pyTypeFactory.hh"
#include "include/PyBaseProxyHandler.hh"
#include "include/JSFunctionProxy.hh"
#include <jsapi.h>
#include <jsfriendapi.h>
#include <Python.h>
#include "include/pyshim.hh"
#include <object.h>
Include dependency graph for JSObjectProxy.cc:

Functions

bool keyToId (PyObject *key, JS::MutableHandleId idp)
 Convert Python dict key to jsid.
 

Variables

JSContext * GLOBAL_CX
 

Detailed Description

JSObjectProxy is a custom C-implemented python type that derives from dict. It acts as a proxy for JSObjects from Spidermonkey, and behaves like a dict would.

Author
Caleb Aikens (caleb.nosp@m.@dis.nosp@m.tribu.nosp@m.tive.nosp@m..netw.nosp@m.ork), Tom Tang (xmade.nosp@m.r@di.nosp@m.strib.nosp@m.utiv.nosp@m.e.net.nosp@m.work) and Philippe Laporte (phili.nosp@m.ppe@.nosp@m.distr.nosp@m.ibut.nosp@m.ive.n.nosp@m.etwo.nosp@m.rk)
Date
2023-06-26

Function Documentation

◆ keyToId()

bool keyToId ( PyObject *  key,
JS::MutableHandleId  idp 
)

Convert Python dict key to jsid.

Variable Documentation

◆ GLOBAL_CX

JSContext* GLOBAL_CX

pointer to PythonMonkey's JSContext