Structs for creating JS proxy objects.
More...
#include <jsapi.h>
#include <jsfriendapi.h>
#include <js/Conversions.h>
#include <js/Proxy.h>
#include <Python.h>
Go to the source code of this file.
|
| PyObject * | idToKey (JSContext *cx, JS::HandleId id) |
| | Convert jsid to a PyObject to be used as dict keys.
|
| |
| bool | keyToId (PyObject *key, JS::MutableHandleId idp) |
| | Convert Python dict key to jsid.
|
| |
| bool | idToIndex (JSContext *cx, JS::HandleId id, Py_ssize_t *index) |
| |
Structs for creating JS proxy objects.
- Author
- Caleb Aikens (caleb.nosp@m.@dis.nosp@m.tribu.nosp@m.tive.nosp@m..netw.nosp@m.ork) 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-04-20
- Copyright
- Copyright (c) 2023-2024 Distributive Corp.
◆ ProxySlots
| Enumerator |
|---|
| PyObjectSlot | |
| OtherSlot | |
◆ idToIndex()
| bool idToIndex |
( |
JSContext * |
cx, |
|
|
JS::HandleId |
id, |
|
|
Py_ssize_t * |
index |
|
) |
| |
◆ idToKey()
| PyObject * idToKey |
( |
JSContext * |
cx, |
|
|
JS::HandleId |
id |
|
) |
| |
Convert jsid to a PyObject to be used as dict keys.
◆ keyToId()
| bool keyToId |
( |
PyObject * |
key, |
|
|
JS::MutableHandleId |
idp |
|
) |
| |
Convert Python dict key to jsid.