Module wrappers2

Module wrappers2 

Source
Expand description

Wrappers for JSAPI/glue methods that accept lifetimed crate::rust::Handle and crate::rust::MutableHandle arguments and crate::context::JSContext

Macros§

wrap 🔒

Functions§

AbortCollectingDelazifications
AbortCollectingDelazifications1
AbortIncrementalGC
AddGCNurseryCollectionCallback
AddPromiseReactions
AddPromiseReactionsIgnoringUnhandledRejection
AddRawValueRoot
AddServoSizeOf
AddSizeOfTab
AppendToIdVector
ArrayBufferClone
ArrayBufferCopyData
AssertSameCompartment
AssertSameCompartment1
BigIntFromBool
BigIntFromInt64
BigIntFromUint64
BigIntToString
BuildStackString
Call
CallJitGetterOp
CallJitMethodOp
CallJitSetterOp
CallMethodIfWrapped
CallOriginalPromiseReject
CallOriginalPromiseResolve
CallOriginalPromiseThen
CaptureCurrentStack
CheckRegExpSyntax
CheckedUnwrapDynamic
ClearKeptObjects
ClearRegExpStatics
CollectRuntimeStats
CollectServoSizes
Compile
Compile1
CompileFunction
CompileFunction1
CompileFunctionUtf8
CompileGlobalScriptToStencil
CompileGlobalScriptToStencil1
CompileJsonModule
CompileJsonModule1
CompileModule
CompileModule1
CompileModuleScriptToStencil
CompileModuleScriptToStencil1
CompileUtf8File
CompileUtf8Path
ComputeThis
Construct
Construct1
ContainsSharedArrayBuffer
ContextOptionsRef
ConvertSavedFrameToPlainObject
CopyArrayBuffer
CreateError
CreateModuleRequest
CreateRootedIdVector
CreateRootedObjectVector
CurrentGlobalOrNull
DateGetMsecSinceEpoch
DateIsValid
DecodeStencil
DefineFunctionWithReserved
DescribeScriptedCaller
DetachArrayBuffer
DispatchableRun
DumpJSStack
EnableContextProfilingStack
EncodeNarrowToUtf8
EncodeStringToUTF8
EncodeUtf8ToNarrow
EncodeUtf8ToWide
EnqueueJob
EnsureNonInlineArrayBufferOrView
EnterRealm
Evaluate
Evaluate1
Evaluate2
EvaluateUtf8Path
ExceptionStackOrNull
ExecuteInFrameScriptEnvironment
ExecuteRegExp
ExecuteRegExpNoStatics
ExposeScriptToDebugger
FinishCollectingDelazifications
FinishCollectingDelazifications1
FinishCollectingDelazifications2
FinishDynamicModuleImport
FinishIncrementalGC
ForceLexicalInitialization
ForwardToNative
FromPropertyDescriptor
GetArrayLength
GetBuiltinClass
GetCurrentRealmOrNull
GetDOMCallbacks
GetElementsWithAdder
GetErrorTypeName
GetExceptionCause
GetFirstArgumentAsTypeHint
GetFirstSubsumedSavedFrame
GetFunctionRealm
GetGCHeapUsage
GetJSTimers
GetModuleEnvironment
GetModuleForNamespace
GetModuleNamespace
GetModuleObject
GetModuleRequestSpecifier
GetModuleRequestType
GetModuleScript
GetObjectProto
GetPendingExceptionStack
GetPromiseAllocationSite
GetPromiseConstructor
GetPromiseID
GetPromiseIsHandled
GetPromisePrototype
GetPromiseResolutionSite
GetPromiseState
GetPromiseUserInputEventHandlingState
GetPropertyKeys
GetRealmArrayPrototype
GetRealmAsyncIteratorPrototype
GetRealmErrorPrototype
GetRealmFunctionPrototype
GetRealmIteratorPrototype
GetRealmKeyObject
GetRealmObjectPrototype
GetRealmOriginalEval
GetRegExpSource
GetRequestedModuleSourcePos
GetRequestedModuleSpecifier
GetRequestedModuleType
GetRequestedModulesCount
GetSavedFrameAsyncCause
GetSavedFrameAsyncParent
GetSavedFrameColumn
GetSavedFrameFunctionDisplayName
GetSavedFrameLine
GetSavedFrameParent
GetSavedFrameSource
GetSavedFrameSourceId
GetScriptedCallerGlobal
GetSelfHostedFunction
GetStackFormat
GetSymbolCode
GetSymbolDescription
GetSymbolFor
GetTestingFunctions
GetWaitForAllPromise
GetWarningReporter
GetWasmModule
GetWeakMapEntry
GetWellKnownSymbol
GetWellKnownSymbolKey
HasDefinedArrayBufferDetachKey
HideScriptedCaller
IncrementalGCHasForegroundWork
IncrementalGCSlice
InitConsumeStreamCallback
InitDispatchsToEventLoop
InitRealmStandardClasses
InitSelfHostedCode
InstantiateGlobalStencil
InstantiateModuleStencil
InvokeGetOwnPropertyDescriptor
InvokeHasOwn
IsArgumentsObject
IsArray
IsArray1
IsArrayObject
IsArrayObject1
IsAsyncStackCaptureEnabledForRealm
IsGCScheduled
IsISOStyleDate
IsIncrementalBarrierNeeded
IsIncrementalGCEnabled
IsIncrementalGCInProgress
IsMapObject
IsObjectInContextCompartment
IsPromiseObject
IsSetObject
IsWasmModuleObject
IterateRealms
IterateRealmsInCompartment
IterateRealmsWithPrincipals
JS_AbortIfWrongThread
JS_AddExtraGCRootsTracer
JS_AddFinalizeCallback
JS_AddInterruptCallback
JS_AddWeakPointerCompartmentCallback
JS_AddWeakPointerZonesCallback
JS_AlreadyHasOwnElement
JS_AlreadyHasOwnProperty
JS_AlreadyHasOwnPropertyById
JS_AlreadyHasOwnUCProperty
JS_AssignObject
JS_AtomizeAndPinString
JS_AtomizeAndPinStringN
JS_AtomizeString
JS_AtomizeStringN
JS_AtomizeUCString
JS_AtomizeUCStringN
JS_CallFunction
JS_CallFunctionName
JS_CallFunctionValue
JS_CharsToId
JS_CheckForInterrupt
JS_ClearPendingException
JS_CloneObject
JS_CompareStrings
JS_ConcatStrings
JS_CopyOwnPropertiesAndPrivateFields
JS_CopyStringChars
JS_CopyStringCharsZ
JS_DecodeBytes
JS_DecompileFunction
JS_DecompileScript
JS_DeepFreezeObject
JS_DefineDebuggerObject
JS_DefineElement
JS_DefineElement1
JS_DefineElement2
JS_DefineElement3
JS_DefineElement4
JS_DefineElement5
JS_DefineElement6
JS_DefineFunction
JS_DefineFunctionById
JS_DefineFunctions
JS_DefineFunctionsWithHelp
JS_DefineObject
JS_DefineProfilingFunctions
JS_DefineProperties
JS_DefineProperty
JS_DefineProperty1
JS_DefineProperty2
JS_DefineProperty3
JS_DefineProperty4
JS_DefineProperty5
JS_DefineProperty6
JS_DefineProperty7
JS_DefinePropertyById
JS_DefinePropertyById1
JS_DefinePropertyById2
JS_DefinePropertyById3
JS_DefinePropertyById4
JS_DefinePropertyById5
JS_DefinePropertyById6
JS_DefinePropertyById7
JS_DefinePropertyById8
JS_DefinePropertyById9
JS_DefineUCFunction
JS_DefineUCProperty
JS_DefineUCProperty1
JS_DefineUCProperty2
JS_DefineUCProperty3
JS_DefineUCProperty4
JS_DefineUCProperty5
JS_DefineUCProperty6
JS_DefineUCProperty7
JS_DefineUCProperty8
JS_DeleteElement
JS_DeleteElement1
JS_DeleteProperty
JS_DeleteProperty1
JS_DeletePropertyById
JS_DeletePropertyById1
JS_DeleteUCProperty
JS_DestroyContext
JS_DisableInterruptCallback
JS_DropPrincipals
JS_EncodeStringToASCII
JS_EncodeStringToBuffer
JS_EncodeStringToLatin1
JS_EncodeStringToUTF8
JS_EnsureLinearString
JS_EnumerateStandardClasses
JS_ErrorFromException
JS_ExecuteScript
JS_ExecuteScript1
JS_ExecuteScript2
JS_ExecuteScript3
JS_FindCompilationScope
JS_FireOnNewGlobalObject
JS_ForOfIteratorInit
JS_ForOfIteratorNext
JS_ForwardGetElementTo
JS_ForwardGetPropertyTo
JS_ForwardSetPropertyTo
JS_FreezeObject
JS_GC
JS_GetArrayBufferViewBuffer
JS_GetClassObject
JS_GetClassPrototype
JS_GetConstructor
JS_GetContextPrivate
JS_GetElement
JS_GetEmptyString
JS_GetEmptyStringValue
JS_GetFunctionDisplayId
JS_GetFunctionId
JS_GetFunctionLength
JS_GetFunctionScript
JS_GetGCParameter
JS_GetGlobalJitCompilerOption
JS_GetLatin1StringCharsAndLength
JS_GetModulePrivate
JS_GetNaNValue
JS_GetOwnPropertyDescriptor
JS_GetOwnPropertyDescriptorById
JS_GetOwnUCPropertyDescriptor
JS_GetParentRuntime
JS_GetPendingException
JS_GetPositiveInfinityValue
JS_GetPromiseResult
JS_GetProperty
JS_GetPropertyById
JS_GetPropertyDescriptor
JS_GetPropertyDescriptorById
JS_GetPrototype
JS_GetPrototypeIfOrdinary
JS_GetRegExpFlags
JS_GetRuntime
JS_GetScriptBaseLineNumber
JS_GetScriptPrivate
JS_GetScriptedCallerPrivate
JS_GetSecurityCallbacks
JS_GetStringCharAt
JS_GetStringEncodingLength
JS_GetTwoByteStringCharsAndLength
JS_GetUCProperty
JS_GetUCPropertyDescriptor
JS_HasElement
JS_HasInstance
JS_HasOwnProperty
JS_HasOwnPropertyById
JS_HasProperty
JS_HasPropertyById
JS_HasUCProperty
JS_IdToProtoKey
JS_IdToValue
JS_IndexToId
JS_InitClass
JS_InitDestroyPrincipalsCallback
JS_InitReadPrincipalsCallback
JS_InitReflectParse
JS_InitializePropertiesFromCompatibleNativeObject
JS_InstanceOf
JS_IsExceptionPending
JS_IsExtensible
JS_IsIdentifier
JS_IsThrowingOutOfMemory
JS_IterateCompartments
JS_IterateCompartmentsInZone
JS_LinkConstructorAndPrototype
JS_MarkCrossZoneId
JS_MarkCrossZoneIdValue
JS_MaybeGC
JS_MaybeGetScriptPrivate
JS_NewBigInt64Array
JS_NewBigInt64ArrayFromArray
JS_NewBigInt64ArrayWithBuffer
JS_NewBigUint64Array
JS_NewBigUint64ArrayFromArray
JS_NewBigUint64ArrayWithBuffer
JS_NewDataView
JS_NewDeadWrapper
JS_NewDependentString
JS_NewEnumerateStandardClasses
JS_NewEnumerateStandardClassesIncludingResolved
JS_NewExternalStringLatin1
JS_NewExternalUCString
JS_NewFloat16Array
JS_NewFloat16ArrayFromArray
JS_NewFloat16ArrayWithBuffer
JS_NewFloat32Array
JS_NewFloat32ArrayFromArray
JS_NewFloat32ArrayWithBuffer
JS_NewFloat64Array
JS_NewFloat64ArrayFromArray
JS_NewFloat64ArrayWithBuffer
JS_NewFunction
JS_NewGlobalObject
JS_NewInt8Array
JS_NewInt8ArrayFromArray
JS_NewInt8ArrayWithBuffer
JS_NewInt16Array
JS_NewInt16ArrayFromArray
JS_NewInt16ArrayWithBuffer
JS_NewInt32Array
JS_NewInt32ArrayFromArray
JS_NewInt32ArrayWithBuffer
JS_NewMaybeExternalStringLatin1
JS_NewMaybeExternalStringUTF8
JS_NewMaybeExternalUCString
JS_NewObject
JS_NewObjectForConstructor
JS_NewObjectWithGivenProto
JS_NewObjectWithoutMetadata
JS_NewOwningCompileOptions
JS_NewPlainObject
JS_NewStringCopyN
JS_NewStringCopyUTF8N
JS_NewStringCopyUTF8Z
JS_NewStringCopyZ
JS_NewUCStringCopyN
JS_NewUCStringCopyZ
JS_NewUint8Array
JS_NewUint8ArrayFromArray
JS_NewUint8ArrayWithBuffer
JS_NewUint8ClampedArray
JS_NewUint8ClampedArrayFromArray
JS_NewUint8ClampedArrayWithBuffer
JS_NewUint16Array
JS_NewUint16ArrayFromArray
JS_NewUint16ArrayWithBuffer
JS_NewUint32Array
JS_NewUint32ArrayFromArray
JS_NewUint32ArrayWithBuffer
JS_NondeterministicGetWeakMapKeys
JS_NondeterministicGetWeakSetKeys
JS_ObjectNotWritten
JS_ParseJSON
JS_ParseJSON1
JS_ParseJSON2
JS_ParseJSONWithReviver
JS_ParseJSONWithReviver1
JS_PreventExtensions
JS_PutEscapedString
JS_ReadString
JS_ReadStructuredClone
JS_ReadTypedArray
JS_RefreshCrossCompartmentWrappers
JS_RemoveExtraGCRootsTracer
JS_RemoveFinalizeCallback
JS_RemoveWeakPointerCompartmentCallback
JS_RemoveWeakPointerZonesCallback
JS_ReportAllocationOverflow
JS_ReportErrorNumberUCArray
JS_ReportErrorNumberUTF8Array
JS_ReportOutOfMemory
JS_RequestInterruptCallback
JS_RequestInterruptCallbackCanWait
JS_ResetGCParameter
JS_ResetInterruptCallback
JS_ResolveStandardClass
JS_SetAllNonReservedSlotsToUndefined
JS_SetContextPrivate
JS_SetDestroyCompartmentCallback
JS_SetDestroyZoneCallback
JS_SetElement
JS_SetElement1
JS_SetElement2
JS_SetElement3
JS_SetElement4
JS_SetElement5
JS_SetFutexCanWait
JS_SetGCCallback
JS_SetGCParameter
JS_SetGCParametersBasedOnAvailableMemory
JS_SetGlobalJitCompilerOption
JS_SetGrayGCRootsTracer
JS_SetImmutablePrototype
JS_SetNativeStackQuota
JS_SetObjectsTenuredCallback
JS_SetOffthreadBaselineCompilationEnabled
JS_SetOffthreadIonCompilationEnabled
JS_SetPendingException
JS_SetProperty
JS_SetPropertyById
JS_SetPrototype
JS_SetSecurityCallbacks
JS_SetSizeOfIncludingThisCompartmentCallback
JS_SetTrustedPrincipals
JS_SetUCProperty
JS_SetWrapObjectCallbacks
JS_StackCapture_FirstSubsumedFrame
JS_StringEqualsAscii
JS_StringEqualsAscii1
JS_StringHasBeenPinned
JS_StringToId
JS_Stringify
JS_StringifyWithLengthHint
JS_StructuredClone
JS_TracerEnterLabelLatin1
JS_TracerEnterLabelTwoByte
JS_TracerIsTracing
JS_TracerLeaveLabelLatin1
JS_TracerLeaveLabelTwoByte
JS_TransplantObject
JS_TypeOfValue
JS_Utf8BufferIsCompilableUnit
JS_ValueToConstructor
JS_ValueToFunction
JS_ValueToId
JS_ValueToObject
JS_ValueToSource
JS_WrapObject
JS_WrapPropertyDescriptor
JS_WrapValue
JS_WriteString
JS_WriteStructuredClone
JS_WriteTypedArray
JS_free
JS_malloc
JS_realloc
JS_string_free
JS_string_malloc
JS_string_realloc
JobQueueIsEmpty
JobQueueMayNotBeEmpty
LeaveRealm
LooselyEqual
LossyTwoByteCharsToNewLatin1CharsZ
LossyUTF8CharsToNewTwoByteCharsZ
MapClear
MapDelete
MapEntries
MapForEach
MapGet
MapHas
MapKeys
MapSet
MapSize
MapValues
MaybeFreezeCtorAndPrototype
MinorGcToJSON
ModuleEvaluate
ModuleLink
NewArrayBuffer
NewArrayBufferWithContents
NewArrayBufferWithUserOwnedContents
NewArrayObject
NewArrayObject1
NewCompileOptions
NewDateObject
NewDateObject1
NewEnvironmentChain
NewExternalArrayBuffer
NewFunctionByIdWithReserved
NewFunctionByIdWithReservedAndProto
NewFunctionFromSpec
NewFunctionFromSpec1
NewFunctionWithReserved
NewMapObject
NewMappedArrayBufferWithContents
NewPromiseObject
NewProxyObject
NewRegExpObject
NewSetObject
NewSharedArrayBuffer
NewStringFromKnownLiveLatin1Buffer
NewStringFromKnownLiveTwoByteBuffer
NewStringFromKnownLiveUTF8Buffer
NewStringFromLatin1Buffer
NewStringFromTwoByteBuffer
NewStringFromUTF8Buffer
NewSymbol
NewUCRegExpObject
NewWeakMapObject
NewWindowProxy
NonIncrementalGC
NotifyGCRootsRemoved
NukeCrossCompartmentWrapper
NukeCrossCompartmentWrapperIfExists
NukeCrossCompartmentWrappers
NukeNonCCWProxy
NukeRemovedCrossCompartmentWrapper
NumberToBigInt
ObjectIsDate
ObjectIsRegExp
OrdinaryHasInstance
OrdinaryToPrimitive
ParseJSONWithHandler
ParseJSONWithHandler1
PeakSizeOfTemporary
PrepareForFullGC
PrepareForIncrementalGC
PrepareScriptEnvironmentAndInvoke
PrepareZoneForGC
PropertySpecNameEqualsId
PropertySpecNameToPermanentId
ProtoKeyToId
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
RealmBehaviorsRef1
RealmCreationOptionsRef1
RecomputeWrappers
RegisterContextProfilingEventMarker
RejectPromise
RemapAllWrappersForObject
RemapDeadWrapper
RemapRemoteWindowProxies
RemapWrapper
RemoveGCNurseryCollectionCallback
RemoveRawValueRoot
ReportAccessDenied
ReportErrorASCII
ReportErrorUTF8
ReportIsNotFunction
ReportLargeOutOfMemory
ReportOutOfMemory
ReportSourceTooLong
ReportUncatchableException
ResetRealmMathRandomSeed
ResolvePromise
RestartDrainingJobQueue
RunJobs
SameValue
SetAccessorPropertyDescriptor
SetAdd
SetAllocationMetadataBuilder
SetAnyPromiseIsHandled
SetArrayLength
SetBrittleMode
SetClear
SetContextProfilingStack
SetCreateGCSliceBudgetCallback
SetDOMCallbacks
SetDataPropertyDescriptor
SetDelete
SetDestroyRealmCallback
SetDoCycleCollectionCallback
SetEntries
SetForEach
SetGCSliceCallback
SetHas
SetHostCleanupFinalizationRegistryCallback
SetHostEnsureCanAddPrivateElementHook
SetJobQueue
SetKeys
SetLowMemoryState
SetOutOfMemoryCallback
SetPendingExceptionStack
SetPreserveWrapperCallbacks
SetPromiseRejectionTrackerCallback
SetPromiseUserInputEventHandlingState
SetPropertyIgnoringNamedGetter
SetRealmNameCallback
SetRegExpInput
SetScriptEnvironmentPreparer
SetSettledPromiseIsHandled
SetSize
SetStackFormat
SetUpEventLoopDispatch
SetValues
SetWarningReporter
SetWeakMapEntry
SetWindowProxy
SetWindowProxyClass
ShouldIgnorePropertyDefinition
ShutdownAsyncTasks
SkipZoneForGC
StackGCVectorStringAtIndex
StackGCVectorStringLength
StackGCVectorValueAtIndex
StackGCVectorValueLength
StartCollectingDelazifications
StartCollectingDelazifications1
StartIncrementalGC
StealArrayBufferContents
StealPendingExceptionStack
StopDrainingJobQueue
StrictlyEqual
StringToBigInt
StringToBigInt1
StringToLinearStringSlow
SystemCompartmentCount
SystemRealmCount
ThrowOnModuleEvaluationFailure
ToBigInt
ToBooleanSlow
ToCompletePropertyDescriptor
ToGetterId
ToInt8Slow
ToInt16Slow
ToInt32Slow
ToInt64Slow
ToJSON
ToJSONMaybeSafely
ToNumberSlow
ToObjectSlow
ToPrimitive
ToSetterId
ToStringSlow
ToUint8Slow
ToUint16Slow
ToUint32Slow
ToUint64Slow
TransparentObjectWrapper
UTF8CharsToNewLatin1CharsZ
UTF8CharsToNewTwoByteCharsZ
UnhideScriptedCaller
UnwrapObjectDynamic
UnwrapOneCheckedDynamic
UpdateDebugMetadata
UseInternalJobQueues
UserCompartmentCount
UserRealmCount
WrapperNew
int_to_jsid