Expand description
Various utilities to glue JavaScript and the DOM implementation together.
Structsยง
- DOMClass ๐
- The struct that holds inheritance information for DOM object reflectors.
- DOMJS
Class ๐ - The JSClass used for DOM object reflectors.
- Global
Static ๐Data - Static data associated with a global object.
Constantsยง
- DOM_
CALLBACKS ๐
Traitsยง
- AsVoid
Ptr ๐
Functionsยง
- define_
all_ ๐exposed_ interfaces - Eagerly define all relevant WebIDL interface constructors on the provided global object.
- get_
array_ ๐index_ from_ id - Get an array index from the given
jsid
. ReturnsNone
if the givenjsid
is not an integer. - get_
dictionary_ ๐ โproperty - Get the property with name
property
fromobject
. ReturnsErr(())
on JSAPI failure (there is a pending exception), andOk(false)
if there was no property with the given name. - has_
property_ ๐ โon_ prototype - Computes whether
proxy
has a propertyid
on its prototype and stores the result infound
. - instance_
class_ ๐ โhas_ proto_ at_ depth - instance_
class_ ๐ โis_ error - https://searchfox.org/mozilla-central/rev/c18faaae88b30182e487fa3341bc7d923e22f23a/xpcom/base/CycleCollectedJSRuntime.cpp#792
- is_
platform_ ๐object - is_
platform_ ๐object_ dynamic - Returns wether
obj
is a platform object using dynamic unwrap https://heycam.github.io/webidl/#dfn-platform-object - is_
platform_ ๐object_ static - Returns wether
obj
is a platform object using static unwrap https://heycam.github.io/webidl/#dfn-platform-object - set_
dictionary_ ๐property - Set the property with name
property
fromobject
. ReturnsErr(())
on JSAPI failure, or null object, and Ok(()) otherwise - to_
frozen_ ๐array - Returns a JSVal representing the frozen JavaScript array
Type Aliasesยง
- Proto
OrIface ๐Array - An array of *mut JSObject of size PROTO_OR_IFACE_LENGTH.