quickjs-emscripten • quickjs-emscripten-core • Readme | Exports
quickjs-emscripten / quickjs-emscripten-core / QuickJSAsyncFFI
Low-level FFI bindings to QuickJS's Emscripten module. See instead QuickJSContext, the public Javascript interface exposed by this library.
- Unstable
- Properties
- DEBUG
- QTS_ArgvGetJSValueConstPointer
- QTS_BuildIsAsyncify
- QTS_BuildIsDebug
- QTS_BuildIsSanitizeLeak
- QTS_Call
- QTS_Call_MaybeAsync
- QTS_DefineProp
- QTS_Dump
- QTS_Dump_MaybeAsync
- QTS_DupValuePointer
- QTS_Eval
- QTS_Eval_MaybeAsync
- QTS_ExecutePendingJob
- QTS_ExecutePendingJob_MaybeAsync
- QTS_FreeCString
- QTS_FreeContext
- QTS_FreeRuntime
- QTS_FreeValuePointer
- QTS_FreeValuePointerRuntime
- QTS_FreeVoidPointer
- QTS_GetArrayBuffer
- QTS_GetArrayBufferLength
- QTS_GetDebugLogEnabled
- QTS_GetFalse
- QTS_GetFloat64
- QTS_GetGlobalObject
- QTS_GetLength
- QTS_GetModuleNamespace
- QTS_GetNull
- QTS_GetOwnPropertyNames
- QTS_GetOwnPropertyNames_MaybeAsync
- QTS_GetProp
- QTS_GetPropNumber
- QTS_GetPropNumber_MaybeAsync
- QTS_GetProp_MaybeAsync
- QTS_GetString
- QTS_GetSymbolDescriptionOrKey
- QTS_GetSymbolDescriptionOrKey_MaybeAsync
- QTS_GetTrue
- QTS_GetUndefined
- QTS_IsEqual
- QTS_IsGlobalSymbol
- QTS_IsJobPending
- QTS_NewArray
- QTS_NewArrayBuffer
- QTS_NewContext
- QTS_NewError
- QTS_NewFloat64
- QTS_NewFunction
- QTS_NewObject
- QTS_NewObjectProto
- QTS_NewPromiseCapability
- QTS_NewRuntime
- QTS_NewString
- QTS_NewSymbol
- QTS_PromiseResult
- QTS_PromiseState
- QTS_RecoverableLeakCheck
- QTS_ResolveException
- QTS_RuntimeComputeMemoryUsage
- QTS_RuntimeDisableInterruptHandler
- QTS_RuntimeDisableModuleLoader
- QTS_RuntimeDumpMemoryUsage
- QTS_RuntimeEnableInterruptHandler
- QTS_RuntimeEnableModuleLoader
- QTS_RuntimeSetMaxStackSize
- QTS_RuntimeSetMemoryLimit
- QTS_SetDebugLogEnabled
- QTS_SetProp
- QTS_SetProp_MaybeAsync
- QTS_TestStringArg
- QTS_Throw
- QTS_Typeof
- QTS_bjson_decode
- QTS_bjson_encode
The FFI interface is considered private and may change.
readonly
DEBUG:boolean
Set at compile time.
packages/quickjs-ffi-types/src/ffi-async.ts:39
QTS_ArgvGetJSValueConstPointer: (
argv
,index
) =>JSValueConstPointer
• argv: JSValuePointer
| JSValueConstPointer
• index: number
packages/quickjs-ffi-types/src/ffi-async.ts:250
QTS_BuildIsAsyncify: () =>
number
number
packages/quickjs-ffi-types/src/ffi-async.ts:248
QTS_BuildIsDebug: () =>
number
number
packages/quickjs-ffi-types/src/ffi-async.ts:247
QTS_BuildIsSanitizeLeak: () =>
number
number
packages/quickjs-ffi-types/src/ffi-async.ts:47
QTS_Call: (
ctx
,func_obj
,this_obj
,argc
,argv_ptrs
) =>JSValuePointer
• ctx: JSContextPointer
• func_obj: JSValuePointer
| JSValueConstPointer
• this_obj: JSValuePointer
| JSValueConstPointer
• argc: number
• argv_ptrs: JSValueConstPointerPointer
packages/quickjs-ffi-types/src/ffi-async.ts:173
QTS_Call_MaybeAsync: (
ctx
,func_obj
,this_obj
,argc
,argv_ptrs
) =>JSValuePointer
|Promise
<JSValuePointer
>
• ctx: JSContextPointer
• func_obj: JSValuePointer
| JSValueConstPointer
• this_obj: JSValuePointer
| JSValueConstPointer
• argc: number
• argv_ptrs: JSValueConstPointerPointer
JSValuePointer
| Promise
<JSValuePointer
>
packages/quickjs-ffi-types/src/ffi-async.ts:180
QTS_DefineProp: (
ctx
,this_val
,prop_name
,prop_value
,get
,set
,configurable
,enumerable
,has_value
) =>void
• ctx: JSContextPointer
• this_val: JSValuePointer
| JSValueConstPointer
• prop_name: JSValuePointer
| JSValueConstPointer
• prop_value: JSValuePointer
| JSValueConstPointer
• get: JSValuePointer
| JSValueConstPointer
• set: JSValuePointer
| JSValueConstPointer
• configurable: boolean
• enumerable: boolean
• has_value: boolean
void
packages/quickjs-ffi-types/src/ffi-async.ts:148
QTS_Dump: (
ctx
,obj
) =>JSBorrowedCharPointer
• ctx: JSContextPointer
• obj: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:188
QTS_Dump_MaybeAsync: (
ctx
,obj
) =>JSBorrowedCharPointer
|Promise
<JSBorrowedCharPointer
>
• ctx: JSContextPointer
• obj: JSValuePointer
| JSValueConstPointer
JSBorrowedCharPointer
| Promise
<JSBorrowedCharPointer
>
packages/quickjs-ffi-types/src/ffi-async.ts:192
QTS_DupValuePointer: (
ctx
,val
) =>JSValuePointer
• ctx: JSContextPointer
• val: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:61
QTS_Eval: (
ctx
,js_code
,js_code_length
,filename
,detectModule
,evalFlags
) =>JSValuePointer
• ctx: JSContextPointer
• js_code: BorrowedHeapCharPointer
• js_code_length: number
• filename: string
• detectModule: EvalDetectModule
• evalFlags: EvalFlags
packages/quickjs-ffi-types/src/ffi-async.ts:196
QTS_Eval_MaybeAsync: (
ctx
,js_code
,js_code_length
,filename
,detectModule
,evalFlags
) =>JSValuePointer
|Promise
<JSValuePointer
>
• ctx: JSContextPointer
• js_code: BorrowedHeapCharPointer
• js_code_length: number
• filename: string
• detectModule: EvalDetectModule
• evalFlags: EvalFlags
JSValuePointer
| Promise
<JSValuePointer
>
packages/quickjs-ffi-types/src/ffi-async.ts:204
QTS_ExecutePendingJob: (
rt
,maxJobsToExecute
,lastJobContext
) =>JSValuePointer
• rt: JSRuntimePointer
• maxJobsToExecute: number
• lastJobContext: JSContextPointerPointer
packages/quickjs-ffi-types/src/ffi-async.ts:106
QTS_ExecutePendingJob_MaybeAsync: (
rt
,maxJobsToExecute
,lastJobContext
) =>JSValuePointer
|Promise
<JSValuePointer
>
• rt: JSRuntimePointer
• maxJobsToExecute: number
• lastJobContext: JSContextPointerPointer
JSValuePointer
| Promise
<JSValuePointer
>
packages/quickjs-ffi-types/src/ffi-async.ts:111
QTS_FreeCString: (
ctx
,str
) =>void
• ctx: JSContextPointer
• str: JSBorrowedCharPointer
void
packages/quickjs-ffi-types/src/ffi-async.ts:60
QTS_FreeContext: (
ctx
) =>void
• ctx: JSContextPointer
void
packages/quickjs-ffi-types/src/ffi-async.ts:56
QTS_FreeRuntime: (
rt
) =>void
• rt: JSRuntimePointer
void
packages/quickjs-ffi-types/src/ffi-async.ts:54
QTS_FreeValuePointer: (
ctx
,value
) =>void
• ctx: JSContextPointer
• value: JSValuePointer
void
packages/quickjs-ffi-types/src/ffi-async.ts:57
QTS_FreeValuePointerRuntime: (
rt
,value
) =>void
• rt: JSRuntimePointer
• value: JSValuePointer
void
packages/quickjs-ffi-types/src/ffi-async.ts:58
QTS_FreeVoidPointer: (
ctx
,ptr
) =>void
• ctx: JSContextPointer
• ptr: JSVoidPointer
void
packages/quickjs-ffi-types/src/ffi-async.ts:59
QTS_GetArrayBuffer: (
ctx
,data
) =>JSVoidPointer
• ctx: JSContextPointer
• data: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:83
QTS_GetArrayBufferLength: (
ctx
,data
) =>number
• ctx: JSContextPointer
• data: JSValuePointer
| JSValueConstPointer
number
packages/quickjs-ffi-types/src/ffi-async.ts:87
QTS_GetDebugLogEnabled: (
rt
) =>number
• rt: JSRuntimePointer
number
packages/quickjs-ffi-types/src/ffi-async.ts:245
QTS_GetFalse: () =>
JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:51
QTS_GetFloat64: (
ctx
,value
) =>number
• ctx: JSContextPointer
• value: JSValuePointer
| JSValueConstPointer
number
packages/quickjs-ffi-types/src/ffi-async.ts:77
QTS_GetGlobalObject: (
ctx
) =>JSValuePointer
• ctx: JSContextPointer
packages/quickjs-ffi-types/src/ffi-async.ts:231
QTS_GetLength: (
ctx
,out_len
,value
) =>number
• ctx: JSContextPointer
• out_len: UInt32Pointer
• value: JSValuePointer
| JSValueConstPointer
number
packages/quickjs-ffi-types/src/ffi-async.ts:220
QTS_GetModuleNamespace: (
ctx
,module_func_obj
) =>JSValuePointer
• ctx: JSContextPointer
• module_func_obj: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:212
QTS_GetNull: () =>
JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:50
QTS_GetOwnPropertyNames: (
ctx
,out_ptrs
,out_len
,obj
,flags
) =>JSValuePointer
• ctx: JSContextPointer
• out_ptrs: JSValuePointerPointerPointer
• out_len: UInt32Pointer
• obj: JSValuePointer
| JSValueConstPointer
• flags: number
packages/quickjs-ffi-types/src/ffi-async.ts:159
QTS_GetOwnPropertyNames_MaybeAsync: (
ctx
,out_ptrs
,out_len
,obj
,flags
) =>JSValuePointer
|Promise
<JSValuePointer
>
• ctx: JSContextPointer
• out_ptrs: JSValuePointerPointerPointer
• out_len: UInt32Pointer
• obj: JSValuePointer
| JSValueConstPointer
• flags: number
JSValuePointer
| Promise
<JSValuePointer
>
packages/quickjs-ffi-types/src/ffi-async.ts:166
QTS_GetProp: (
ctx
,this_val
,prop_name
) =>JSValuePointer
• ctx: JSContextPointer
• this_val: JSValuePointer
| JSValueConstPointer
• prop_name: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:116
QTS_GetPropNumber: (
ctx
,this_val
,prop_name
) =>JSValuePointer
• ctx: JSContextPointer
• this_val: JSValuePointer
| JSValueConstPointer
• prop_name: number
packages/quickjs-ffi-types/src/ffi-async.ts:126
QTS_GetPropNumber_MaybeAsync: (
ctx
,this_val
,prop_name
) =>JSValuePointer
|Promise
<JSValuePointer
>
• ctx: JSContextPointer
• this_val: JSValuePointer
| JSValueConstPointer
• prop_name: number
JSValuePointer
| Promise
<JSValuePointer
>
packages/quickjs-ffi-types/src/ffi-async.ts:131
QTS_GetProp_MaybeAsync: (
ctx
,this_val
,prop_name
) =>JSValuePointer
|Promise
<JSValuePointer
>
• ctx: JSContextPointer
• this_val: JSValuePointer
| JSValueConstPointer
• prop_name: JSValuePointer
| JSValueConstPointer
JSValuePointer
| Promise
<JSValuePointer
>
packages/quickjs-ffi-types/src/ffi-async.ts:121
QTS_GetString: (
ctx
,value
) =>JSBorrowedCharPointer
• ctx: JSContextPointer
• value: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:79
QTS_GetSymbolDescriptionOrKey: (
ctx
,value
) =>JSBorrowedCharPointer
• ctx: JSContextPointer
• value: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:96
QTS_GetSymbolDescriptionOrKey_MaybeAsync: (
ctx
,value
) =>JSBorrowedCharPointer
|Promise
<JSBorrowedCharPointer
>
• ctx: JSContextPointer
• value: JSValuePointer
| JSValueConstPointer
JSBorrowedCharPointer
| Promise
<JSBorrowedCharPointer
>
packages/quickjs-ffi-types/src/ffi-async.ts:100
QTS_GetTrue: () =>
JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:52
QTS_GetUndefined: () =>
JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:49
QTS_IsEqual: (
ctx
,a
,b
,op
) =>number
• ctx: JSContextPointer
• a: JSValuePointer
| JSValueConstPointer
• b: JSValuePointer
| JSValueConstPointer
• op: IsEqualOp
number
packages/quickjs-ffi-types/src/ffi-async.ts:225
QTS_IsGlobalSymbol: (
ctx
,value
) =>number
• ctx: JSContextPointer
• value: JSValuePointer
| JSValueConstPointer
number
packages/quickjs-ffi-types/src/ffi-async.ts:104
QTS_IsJobPending: (
rt
) =>number
• rt: JSRuntimePointer
number
packages/quickjs-ffi-types/src/ffi-async.ts:105
QTS_NewArray: (
ctx
) =>JSValuePointer
• ctx: JSContextPointer
packages/quickjs-ffi-types/src/ffi-async.ts:70
QTS_NewArrayBuffer: (
ctx
,buffer
,length
) =>JSValuePointer
• ctx: JSContextPointer
• buffer: JSVoidPointer
• length: number
packages/quickjs-ffi-types/src/ffi-async.ts:71
QTS_NewContext: (
rt
,intrinsics
) =>JSContextPointer
• rt: JSRuntimePointer
• intrinsics: IntrinsicsFlags
packages/quickjs-ffi-types/src/ffi-async.ts:55
QTS_NewError: (
ctx
) =>JSValuePointer
• ctx: JSContextPointer
packages/quickjs-ffi-types/src/ffi-async.ts:42
QTS_NewFloat64: (
ctx
,num
) =>JSValuePointer
• ctx: JSContextPointer
• num: number
packages/quickjs-ffi-types/src/ffi-async.ts:76
QTS_NewFunction: (
ctx
,func_id
,name
) =>JSValuePointer
• ctx: JSContextPointer
• func_id: number
• name: string
packages/quickjs-ffi-types/src/ffi-async.ts:249
QTS_NewObject: (
ctx
) =>JSValuePointer
• ctx: JSContextPointer
packages/quickjs-ffi-types/src/ffi-async.ts:65
QTS_NewObjectProto: (
ctx
,proto
) =>JSValuePointer
• ctx: JSContextPointer
• proto: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:66
QTS_NewPromiseCapability: (
ctx
,resolve_funcs_out
) =>JSValuePointer
• ctx: JSContextPointer
• resolve_funcs_out: JSValuePointerPointer
packages/quickjs-ffi-types/src/ffi-async.ts:232
QTS_NewRuntime: () =>
JSRuntimePointer
packages/quickjs-ffi-types/src/ffi-async.ts:53
QTS_NewString: (
ctx
,string
) =>JSValuePointer
• ctx: JSContextPointer
• string: BorrowedHeapCharPointer
packages/quickjs-ffi-types/src/ffi-async.ts:78
QTS_NewSymbol: (
ctx
,description
,isGlobal
) =>JSValuePointer
• ctx: JSContextPointer
• description: BorrowedHeapCharPointer
• isGlobal: number
packages/quickjs-ffi-types/src/ffi-async.ts:91
QTS_PromiseResult: (
ctx
,promise
) =>JSValuePointer
• ctx: JSContextPointer
• promise: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:240
QTS_PromiseState: (
ctx
,promise
) =>JSPromiseStateEnum
• ctx: JSContextPointer
• promise: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:236
QTS_RecoverableLeakCheck: () =>
number
number
packages/quickjs-ffi-types/src/ffi-async.ts:46
QTS_ResolveException: (
ctx
,maybe_exception
) =>JSValuePointer
• ctx: JSContextPointer
• maybe_exception: JSValuePointer
packages/quickjs-ffi-types/src/ffi-async.ts:187
QTS_RuntimeComputeMemoryUsage: (
rt
,ctx
) =>JSValuePointer
• rt: JSRuntimePointer
• ctx: JSContextPointer
packages/quickjs-ffi-types/src/ffi-async.ts:44
QTS_RuntimeDisableInterruptHandler: (
rt
) =>void
• rt: JSRuntimePointer
void
packages/quickjs-ffi-types/src/ffi-async.ts:255
QTS_RuntimeDisableModuleLoader: (
rt
) =>void
• rt: JSRuntimePointer
void
packages/quickjs-ffi-types/src/ffi-async.ts:257
QTS_RuntimeDumpMemoryUsage: (
rt
) =>OwnedHeapCharPointer
• rt: JSRuntimePointer
packages/quickjs-ffi-types/src/ffi-async.ts:45
QTS_RuntimeEnableInterruptHandler: (
rt
) =>void
• rt: JSRuntimePointer
void
packages/quickjs-ffi-types/src/ffi-async.ts:254
QTS_RuntimeEnableModuleLoader: (
rt
,use_custom_normalize
) =>void
• rt: JSRuntimePointer
• use_custom_normalize: number
void
packages/quickjs-ffi-types/src/ffi-async.ts:256
QTS_RuntimeSetMaxStackSize: (
rt
,stack_size
) =>void
• rt: JSRuntimePointer
• stack_size: number
void
packages/quickjs-ffi-types/src/ffi-async.ts:48
QTS_RuntimeSetMemoryLimit: (
rt
,limit
) =>void
• rt: JSRuntimePointer
• limit: number
void
packages/quickjs-ffi-types/src/ffi-async.ts:43
QTS_SetDebugLogEnabled: (
rt
,is_enabled
) =>void
• rt: JSRuntimePointer
• is_enabled: number
void
packages/quickjs-ffi-types/src/ffi-async.ts:246
QTS_SetProp: (
ctx
,this_val
,prop_name
,prop_value
) =>void
• ctx: JSContextPointer
• this_val: JSValuePointer
| JSValueConstPointer
• prop_name: JSValuePointer
| JSValueConstPointer
• prop_value: JSValuePointer
| JSValueConstPointer
void
packages/quickjs-ffi-types/src/ffi-async.ts:136
QTS_SetProp_MaybeAsync: (
ctx
,this_val
,prop_name
,prop_value
) =>void
|Promise
<void
>
• ctx: JSContextPointer
• this_val: JSValuePointer
| JSValueConstPointer
• prop_name: JSValuePointer
| JSValueConstPointer
• prop_value: JSValuePointer
| JSValueConstPointer
void
| Promise
<void
>
packages/quickjs-ffi-types/src/ffi-async.ts:142
QTS_TestStringArg: (
string
) =>void
• string: string
void
packages/quickjs-ffi-types/src/ffi-async.ts:244
QTS_Throw: (
ctx
,error
) =>JSValuePointer
• ctx: JSContextPointer
• error: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:41
QTS_Typeof: (
ctx
,value
) =>OwnedHeapCharPointer
• ctx: JSContextPointer
• value: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:216
QTS_bjson_decode: (
ctx
,data
) =>JSValuePointer
• ctx: JSContextPointer
• data: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:262
QTS_bjson_encode: (
ctx
,val
) =>JSValuePointer
• ctx: JSContextPointer
• val: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi-async.ts:258
Generated using typedoc-plugin-markdown and TypeDoc