Module wrappers
mozjs
0.14.1
Module wrappers
Module Items
Macros
Functions
In mozjs::
rust
Modules
wrappers
Structs
CapturedJSStack
CompileOptionsWrapper
IdVector
JSEngine
JSEngineHandle
ParentRuntime
RealmOptions
RootedObjectVectorWrapper
Runtime
ScriptedCaller
Stencil
ThreadSafeJSContext
Enums
EngineState
JSEngineError
Constants
CONTEXT
ChunkShift
ChunkSize
STACK_QUOTA
SYSTEM_CODE_BUFFER
TRUSTED_SCRIPT_BUFFER
Statics
ENGINE_STATE
SIMPLE_GLOBAL_CLASS
SIMPLE_GLOBAL_CLASS_OPS
Traits
GCMethods
IntoHandle
IntoMutableHandle
ToResult
Trace
Functions
ToBoolean
ToInt32
ToInt64
ToNumber
ToString
ToUint16
ToUint32
ToUint64
ToWindowProxyIfWindow
convert_from_int32
define_methods
define_properties
describe_scripted_caller
get_context_realm
get_object_class
get_object_group
get_object_realm
is_dom_class
is_dom_object
is_window
maybe_wrap_object
maybe_wrap_object_or_null_value
maybe_wrap_object_value
maybe_wrap_value
report_warning
transform_str_to_source_text
transform_u16_to_source_text
try_to_outerize
try_to_outerize_object
mozjs
::
rust
Module
wrappers
Copy item path
Settings
Help
Summary
Source
Expand description
Wrappers for JSAPI methods that accept lifetimed Handle and MutableHandle arguments
Macros
§
wrap
🔒
Functions
§
Abort
Incremental
Encoding
⚠
Abort
Incremental
Encoding1
⚠
AddPromise
Reactions
⚠
AddPromise
Reactions
Ignoring
Unhandled
Rejection
⚠
AddSize
OfTab
⚠
Append
ToId
Vector
⚠
Array
Buffer
Clone
⚠
Array
Buffer
Copy
Data
⚠
Assert
Same
Compartment1
⚠
BigInt
ToString
⚠
Build
Stack
String
⚠
Call
⚠
Call
JitGetter
Op
⚠
Call
JitMethod
Op
⚠
Call
JitSetter
Op
⚠
Call
Original
Promise
Reject
⚠
Call
Original
Promise
Resolve
⚠
Call
Original
Promise
Then
⚠
Capture
Current
Stack
⚠
Check
RegExp
Syntax
⚠
Clear
RegExp
Statics
⚠
Compile
Function
⚠
Compile
Function1
⚠
Compile
Function
Utf8
⚠
Compute
This
⚠
Construct
⚠
Construct1
⚠
Convert
Saved
Frame
ToPlain
Object
⚠
Copy
Array
Buffer
⚠
Create
Error
⚠
Create
Module
Request
⚠
Date
GetMsec
Since
Epoch
⚠
Date
IsValid
⚠
Detach
Array
Buffer
⚠
Encode
String
ToUT
F8
⚠
Enqueue
Job
⚠
Evaluate
⚠
Evaluate1
⚠
Evaluate2
⚠
Evaluate
Utf8
Path
⚠
Exception
Stack
OrNull
⚠
Execute
InFrame
Script
Environment
⚠
Execute
RegExp
⚠
Execute
RegExp
NoStatics
⚠
Expose
Script
ToDebugger
⚠
Finish
Dynamic
Module
Import
⚠
Force
Lexical
Initialization
⚠
From
Property
Descriptor
⚠
GetArray
Length
⚠
GetBuiltin
Class
⚠
GetElements
With
Adder
⚠
GetException
Cause
⚠
GetFirst
Subsumed
Saved
Frame
⚠
GetFunction
Realm
⚠
GetModule
Environment
⚠
GetModule
ForNamespace
⚠
GetModule
Namespace
⚠
GetModule
Object
⚠
GetModule
Request
Specifier
⚠
GetModule
Script
⚠
GetObject
Proto
⚠
GetPromise
Allocation
Site
⚠
GetPromiseID
⚠
GetPromise
IsHandled
⚠
GetPromise
Resolution
Site
⚠
GetPromise
State
⚠
GetPromise
User
Input
Event
Handling
State
⚠
GetProperty
Keys
⚠
GetRealm
Original
Eval
⚠
GetReg
ExpSource
⚠
GetRequested
Module
Source
Pos
⚠
GetRequested
Module
Specifier
⚠
GetRequested
Modules
Count
⚠
GetSaved
Frame
Async
Cause
⚠
GetSaved
Frame
Async
Parent
⚠
GetSaved
Frame
Column
⚠
GetSaved
Frame
Function
Display
Name
⚠
GetSaved
Frame
Line
⚠
GetSaved
Frame
Parent
⚠
GetSaved
Frame
Source
⚠
GetSaved
Frame
Source
Id
⚠
GetSelf
Hosted
Function
⚠
GetSymbol
Code
⚠
GetSymbol
Description
⚠
GetSymbol
For
⚠
GetWait
ForAll
Promise
⚠
GetWasm
Module
⚠
GetWeak
MapEntry
⚠
HasDefined
Array
Buffer
Detach
Key
⚠
Invoke
GetOwn
Property
Descriptor
⚠
Invoke
HasOwn
⚠
IsArguments
Object
⚠
IsArray
⚠
IsArray1
⚠
IsArray
Object
⚠
IsArray
Object1
⚠
IsMap
Object
⚠
IsPromise
Object
⚠
IsSet
Object
⚠
IsWasm
Module
Object
⚠
JS_
Already
HasOwn
Element
⚠
JS_
Already
HasOwn
Property
⚠
JS_
Already
HasOwn
Property
ById
⚠
JS_
Already
HasOwnUC
Property
⚠
JS_
Assign
Object
⚠
JS_
Call
Function
⚠
JS_
Call
Function
Name
⚠
JS_
Call
Function
Value
⚠
JS_
Chars
ToId
⚠
JS_
Clone
Object
⚠
JS_
Concat
Strings
⚠
JS_
Copy
OwnProperties
AndPrivate
Fields
⚠
JS_
Decompile
Function
⚠
JS_
Decompile
Script
⚠
JS_
Deep
Freeze
Object
⚠
JS_
Define
Debugger
Object
⚠
JS_
Define
Element
⚠
JS_
Define
Element1
⚠
JS_
Define
Element2
⚠
JS_
Define
Element3
⚠
JS_
Define
Element4
⚠
JS_
Define
Element5
⚠
JS_
Define
Element6
⚠
JS_
Define
Function
⚠
JS_
Define
Function
ById
⚠
JS_
Define
Functions
⚠
JS_
Define
Functions
With
Help
⚠
JS_
Define
Object
⚠
JS_
Define
Profiling
Functions
⚠
JS_
Define
Properties
⚠
JS_
Define
Property
⚠
JS_
Define
Property1
⚠
JS_
Define
Property2
⚠
JS_
Define
Property3
⚠
JS_
Define
Property4
⚠
JS_
Define
Property5
⚠
JS_
Define
Property6
⚠
JS_
Define
Property7
⚠
JS_
Define
Property
ById
⚠
JS_
Define
Property
ById1
⚠
JS_
Define
Property
ById2
⚠
JS_
Define
Property
ById3
⚠
JS_
Define
Property
ById4
⚠
JS_
Define
Property
ById5
⚠
JS_
Define
Property
ById6
⚠
JS_
Define
Property
ById7
⚠
JS_
Define
Property
ById8
⚠
JS_
Define
Property
ById9
⚠
JS_
DefineUC
Function
⚠
JS_
DefineUC
Property
⚠
JS_
DefineUC
Property1
⚠
JS_
DefineUC
Property2
⚠
JS_
DefineUC
Property3
⚠
JS_
DefineUC
Property4
⚠
JS_
DefineUC
Property5
⚠
JS_
DefineUC
Property6
⚠
JS_
DefineUC
Property7
⚠
JS_
DefineUC
Property8
⚠
JS_
Delete
Element
⚠
JS_
Delete
Element1
⚠
JS_
Delete
Property
⚠
JS_
Delete
Property1
⚠
JS_
Delete
Property
ById
⚠
JS_
Delete
Property
ById1
⚠
JS_
DeleteUC
Property
⚠
JS_
Encode
String
ToUT
F8
⚠
JS_
Enumerate
Standard
Classes
⚠
JS_
Error
From
Exception
⚠
JS_
Execute
Script
⚠
JS_
Execute
Script1
⚠
JS_
Execute
Script2
⚠
JS_
Execute
Script3
⚠
JS_
Find
Compilation
Scope
⚠
JS_
Fire
OnNew
Global
Object
⚠
JS_
ForOf
Iterator
Init
⚠
JS_
ForOf
Iterator
Next
⚠
JS_
Forward
GetElement
To
⚠
JS_
Forward
GetProperty
To
⚠
JS_
Forward
SetProperty
To
⚠
JS_
Freeze
Object
⚠
JS_
GetArray
Buffer
View
Buffer
⚠
JS_
GetClass
Object
⚠
JS_
GetClass
Prototype
⚠
JS_
GetConstructor
⚠
JS_
GetElement
⚠
JS_
GetFunction
Display
Id
⚠
JS_
GetFunction
Id
⚠
JS_
GetFunction
Length
⚠
JS_
GetFunction
Script
⚠
JS_
GetModule
Private
⚠
JS_
GetOwn
Property
Descriptor
⚠
JS_
GetOwn
Property
Descriptor
ById
⚠
JS_
GetOwnUC
Property
Descriptor
⚠
JS_
GetPending
Exception
⚠
JS_
GetPromise
Result
⚠
JS_
GetProperty
⚠
JS_
GetProperty
ById
⚠
JS_
GetProperty
Descriptor
⚠
JS_
GetProperty
Descriptor
ById
⚠
JS_
GetPrototype
⚠
JS_
GetPrototype
IfOrdinary
⚠
JS_
GetReg
ExpFlags
⚠
JS_
GetScript
Private
⚠
JS_
GetScripted
Caller
Private
⚠
JS_
GetUC
Property
⚠
JS_
GetUC
Property
Descriptor
⚠
JS_
HasElement
⚠
JS_
HasInstance
⚠
JS_
HasOwn
Property
⚠
JS_
HasOwn
Property
ById
⚠
JS_
HasProperty
⚠
JS_
HasProperty
ById
⚠
JS_
HasUC
Property
⚠
JS_
IdTo
Proto
Key
⚠
JS_
IdTo
Value
⚠
JS_
Index
ToId
⚠
JS_
Init
Class
⚠
JS_
Init
Reflect
Parse
⚠
JS_
Initialize
Properties
From
Compatible
Native
Object
⚠
JS_
Instance
Of
⚠
JS_
IsExtensible
⚠
JS_
IsIdentifier
⚠
JS_
Link
Constructor
AndPrototype
⚠
JS_
Maybe
GetScript
Private
⚠
JS_
NewBig
Int64
Array
From
Array
⚠
JS_
NewBig
Int64
Array
With
Buffer
⚠
JS_
NewBig
Uint64
Array
From
Array
⚠
JS_
NewBig
Uint64
Array
With
Buffer
⚠
JS_
NewData
View
⚠
JS_
NewDependent
String
⚠
JS_
NewEnumerate
Standard
Classes
⚠
JS_
NewEnumerate
Standard
Classes
Including
Resolved
⚠
JS_
NewFloat16
Array
From
Array
⚠
JS_
NewFloat16
Array
With
Buffer
⚠
JS_
NewFloat32
Array
From
Array
⚠
JS_
NewFloat32
Array
With
Buffer
⚠
JS_
NewFloat64
Array
From
Array
⚠
JS_
NewFloat64
Array
With
Buffer
⚠
JS_
NewInt8
Array
From
Array
⚠
JS_
NewInt8
Array
With
Buffer
⚠
JS_
NewInt16
Array
From
Array
⚠
JS_
NewInt16
Array
With
Buffer
⚠
JS_
NewInt32
Array
From
Array
⚠
JS_
NewInt32
Array
With
Buffer
⚠
JS_
NewObject
With
Given
Proto
⚠
JS_
NewObject
Without
Metadata
⚠
JS_
NewUint8
Array
From
Array
⚠
JS_
NewUint8
Array
With
Buffer
⚠
JS_
NewUint8
Clamped
Array
From
Array
⚠
JS_
NewUint8
Clamped
Array
With
Buffer
⚠
JS_
NewUint16
Array
From
Array
⚠
JS_
NewUint16
Array
With
Buffer
⚠
JS_
NewUint32
Array
From
Array
⚠
JS_
NewUint32
Array
With
Buffer
⚠
JS_
Nondeterministic
GetWeak
MapKeys
⚠
JS_
Nondeterministic
GetWeak
SetKeys
⚠
JS_
Object
NotWritten
⚠
JS_
ParseJSON
⚠
JS_
ParseJSO
N1
⚠
JS_
ParseJSO
N2
⚠
JS_
ParseJSON
With
Reviver
⚠
JS_
ParseJSON
With
Reviver1
⚠
JS_
Prevent
Extensions
⚠
JS_
Read
String
⚠
JS_
Read
Structured
Clone
⚠
JS_
Read
Typed
Array
⚠
JS_
Refresh
Cross
Compartment
Wrappers
⚠
JS_
Resolve
Standard
Class
⚠
JS_
SetAll
NonReserved
Slots
ToUndefined
⚠
JS_
SetElement
⚠
JS_
SetElement1
⚠
JS_
SetElement2
⚠
JS_
SetElement3
⚠
JS_
SetElement4
⚠
JS_
SetElement5
⚠
JS_
SetImmutable
Prototype
⚠
JS_
SetPending
Exception
⚠
JS_
SetProperty
⚠
JS_
SetProperty
ById
⚠
JS_
SetPrototype
⚠
JS_
SetUC
Property
⚠
JS_
String
ToId
⚠
JS_
Stringify
⚠
JS_
Structured
Clone
⚠
JS_
Transplant
Object
⚠
JS_
Type
OfValue
⚠
JS_
Utf8
Buffer
IsCompilable
Unit
⚠
JS_
Value
ToConstructor
⚠
JS_
Value
ToFunction
⚠
JS_
Value
ToId
⚠
JS_
Value
ToObject
⚠
JS_
Value
ToSource
⚠
JS_
Wrap
Object
⚠
JS_
Wrap
Property
Descriptor
⚠
JS_
Wrap
Value
⚠
JS_
Write
String
⚠
JS_
Write
Structured
Clone
⚠
JS_
Write
Typed
Array
⚠
Loosely
Equal
⚠
MapClear
⚠
MapDelete
⚠
MapEntries
⚠
MapFor
Each
⚠
MapGet
⚠
MapHas
⚠
MapKeys
⚠
MapSet
⚠
MapSize
⚠
MapValues
⚠
Maybe
Freeze
Ctor
AndPrototype
⚠
Module
Evaluate
⚠
Module
Link
⚠
NewArray
Object
⚠
NewFunction
ById
With
Reserved
AndProto
⚠
NewFunction
From
Spec
⚠
NewPromise
Object
⚠
NewProxy
Object
⚠
NewSymbol
⚠
NewWindow
Proxy
⚠
Nuke
NonCCW
Proxy
⚠
Object
IsDate
⚠
Object
IsReg
Exp
⚠
Ordinary
HasInstance
⚠
Ordinary
ToPrimitive
⚠
ParseJSON
With
Handler
⚠
ParseJSON
With
Handler1
⚠
Prepare
Script
Environment
AndInvoke
⚠
Property
Spec
Name
Equals
Id
⚠
Proto
KeyTo
Id
⚠
RUST_
INTERNED_
STRING_
TO_
JSID
⚠
RUST_
JSID_
IS_
INT
⚠
RUST_
JSID_
IS_
STRING
⚠
RUST_
JSID_
IS_
VOID
⚠
RUST_
JSID_
TO_
INT
⚠
RUST_
JSID_
TO_
STRING
⚠
RUST_
SYMBOL_
TO_
JSID
⚠
Reject
Promise
⚠
Remap
AllWrappers
ForObject
⚠
Remap
Dead
Wrapper
⚠
Remap
Remote
Window
Proxies
⚠
Report
IsNot
Function
⚠
Resolve
Promise
⚠
Same
Value
⚠
SetAccessor
Property
Descriptor
⚠
SetAdd
⚠
SetAny
Promise
IsHandled
⚠
SetArray
Length
⚠
SetClear
⚠
SetData
Property
Descriptor
⚠
SetDelete
⚠
SetEntries
⚠
SetFor
Each
⚠
SetHas
⚠
SetKeys
⚠
SetPromise
User
Input
Event
Handling
State
⚠
SetProperty
Ignoring
Named
Getter
⚠
SetReg
ExpInput
⚠
SetSettled
Promise
IsHandled
⚠
SetSize
⚠
SetValues
⚠
SetWeak
MapEntry
⚠
SetWindow
Proxy
⚠
Steal
Array
Buffer
Contents
⚠
Strictly
Equal
⚠
Throw
OnModule
Evaluation
Failure
⚠
ToBig
Int
⚠
ToBoolean
Slow
⚠
ToComplete
Property
Descriptor
⚠
ToGetter
Id
⚠
ToInt8
Slow
⚠
ToInt16
Slow
⚠
ToInt32
Slow
⚠
ToInt64
Slow
⚠
ToJSON
⚠
ToJSON
Maybe
Safely
⚠
ToNumber
Slow
⚠
ToObject
Slow
⚠
ToPrimitive
⚠
ToSetter
Id
⚠
ToString
Slow
⚠
ToUint8
Slow
⚠
ToUint16
Slow
⚠
ToUint32
Slow
⚠
ToUint64
Slow
⚠
Transparent
Object
Wrapper
⚠
Unwrap
OneChecked
Dynamic
⚠
Update
Debug
Metadata
⚠
Wrapper
New
⚠
int_
to_
jsid
⚠