Module interface

Source
Expand description

Machinery to initialise interface prototype objects and interface objects.

Structsยง

InterfaceConstructorBehavior ๐Ÿ”’
The constructor behavior of a non-callback interface object.
NonCallbackInterfaceObjectClass ๐Ÿ”’
The class of a non-callback interface object.

Enumsยง

ProtoOrIfaceIndex ๐Ÿ”’

Constantsยง

OBJECT_OPS ๐Ÿ”’

Functionsยง

create_callback_interface_object ๐Ÿ”’
Create and define the interface object of a callback interface.
create_global_object ๐Ÿ”’ โš 
Create a global object with the given class.
create_interface_prototype_object ๐Ÿ”’
Create the interface prototype object of a non-callback interface.
create_named_constructors ๐Ÿ”’
Create and define the named constructors of a non-callback interface.
create_noncallback_interface_object ๐Ÿ”’
Create and define the interface object of a non-callback interface.
create_object ๐Ÿ”’
Create a new object with a unique type.
create_unscopable_object ๐Ÿ”’
define_dom_interface ๐Ÿ”’
define_guarded_constants ๐Ÿ”’
Conditionally define constants on an object.
define_guarded_methods ๐Ÿ”’
Conditionally define methods on an object.
define_guarded_properties ๐Ÿ”’
Conditionally define properties on an object.
define_length ๐Ÿ”’
define_name ๐Ÿ”’
define_on_global_object ๐Ÿ”’
Define a property with a given name on the global object. Should be called through the resolve hook.
fun_to_string_hook ๐Ÿ”’ โš 
get_desired_proto
get_per_interface_object_handle ๐Ÿ”’
get_proto_id_for_new_target ๐Ÿ”’
invalid_constructor ๐Ÿ”’ โš 
is_exposed_in ๐Ÿ”’
Returns whether an interface with exposure set given by globals should be exposed in the global object obj.
non_new_constructor ๐Ÿ”’ โš 
select_compartment ๐Ÿ”’
Choose the compartment to create a new global object in.

Type Aliasesยง

ConstructorClassHook ๐Ÿ”’
A constructor class hook.
TraceHook ๐Ÿ”’
A trace hook.