Skip to content

Latest commit

 

History

History
484 lines (267 loc) · 12 KB

File metadata and controls

484 lines (267 loc) · 12 KB

quickjs-emscripten@jitl/quickjs-ffi-typesReadme | Exports


quickjs-emscripten / @jitl/quickjs-ffi-types

@jitl/quickjs-ffi-types

Contents

Interfaces

Type Aliases

BorrowedHeapCharPointer

BorrowedHeapCharPointer: Pointer<"const char" | "char" | "js const char">

Used internally for Javascript-to-C calls that may contain strings too large for the Emscripten stack.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:77


EitherFFI

EitherFFI: QuickJSFFI | QuickJSAsyncFFI

Source

packages/quickjs-ffi-types/src/variant-types.ts:50


EitherModule

EitherModule: QuickJSEmscriptenModule | QuickJSAsyncEmscriptenModule

Source

packages/quickjs-ffi-types/src/emscripten-types.ts:246


JSBorrowedCharPointer

JSBorrowedCharPointer: Pointer<"js const char">

Used internally for Javascript-to-C calls that may contain strings too large for the Emscripten stack.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:89


JSContextPointer

JSContextPointer: Pointer<"JSContext">

JSContext*.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:19


JSContextPointerPointer

JSContextPointerPointer: Pointer<"JSContext">

JSContext**. Used internally for execute pending jobs.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:24


JSModuleDefPointer

JSModuleDefPointer: Pointer<"JSModuleDef">

JSModuleDef*.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:29


JSPromiseStateEnum

JSPromiseStateEnum: Brand<typeof JSPromiseStateEnum[keyof typeof JSPromiseStateEnum], "JSPromiseStateEnum">

State of a promise.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:114


JSRuntimePointer

JSRuntimePointer: Pointer<"JSRuntime">

JSRuntime*.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:14


JSValueConstPointer

JSValueConstPointer: Pointer<"JSValueConst">

`JSValueConst* See JSValueConst and StaticJSValue.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:41


JSValueConstPointerPointer

JSValueConstPointerPointer: Pointer<"JSValueConst[]">

Used internally for Javascript-to-C function calls.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:51


JSValuePointer

JSValuePointer: Pointer<"JSValue">

JSValue*. See JSValue.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:35


JSValuePointerPointer

JSValuePointerPointer: Pointer<"JSValue[]">

Used internally for Javascript-to-C function calls.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:46


JSVoidPointer

JSVoidPointer: Pointer<any>

Opaque pointer that was allocated by js_malloc.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:94


OwnedHeapCharPointer

OwnedHeapCharPointer: Pointer<"char">

Used internally for Javascript-to-C calls that may contain strings too large for the Emscripten stack.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:83


QTS_C_To_HostCallbackFuncPointer

QTS_C_To_HostCallbackFuncPointer: Pointer<"C_To_HostCallbackFunc">

Used internally for C-to-Javascript function calls.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:61


QTS_C_To_HostInterruptFuncPointer

QTS_C_To_HostInterruptFuncPointer: Pointer<"C_To_HostInterruptFunc">

Used internally for C-to-Javascript interrupt handlers.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:66


QTS_C_To_HostLoadModuleFuncPointer

QTS_C_To_HostLoadModuleFuncPointer: Pointer<"C_To_HostLoadModuleFunc">

Used internally for C-to-Javascript module loading.

Source

packages/quickjs-ffi-types/src/ffi-types.ts:71


QuickJSVariant

QuickJSVariant: QuickJSSyncVariant | QuickJSAsyncVariant

Source

packages/quickjs-ffi-types/src/variant-types.ts:49

Variables

EvalFlags

EvalFlags: Object

Bitfield options for JS_Eval() C function.

Type declaration

JS_EVAL_FLAG_BACKTRACE_BARRIER

readonly JS_EVAL_FLAG_BACKTRACE_BARRIER: number

don't include the stack frames before this eval in the Error() backtraces

JS_EVAL_FLAG_COMPILE_ONLY

readonly JS_EVAL_FLAG_COMPILE_ONLY: number

compile but do not run. The result is an object with a JS_TAG_FUNCTION_BYTECODE or JS_TAG_MODULE tag. It can be executed with JS_EvalFunction().

JS_EVAL_FLAG_STRICT

readonly JS_EVAL_FLAG_STRICT: number

force 'strict' mode

JS_EVAL_FLAG_STRIP

readonly JS_EVAL_FLAG_STRIP: number

force 'strip' mode

JS_EVAL_TYPE_DIRECT

readonly JS_EVAL_TYPE_DIRECT: number

direct call (internal use)

JS_EVAL_TYPE_GLOBAL

readonly JS_EVAL_TYPE_GLOBAL: number

global code (default)

JS_EVAL_TYPE_INDIRECT

readonly JS_EVAL_TYPE_INDIRECT: number

indirect call (internal use)

JS_EVAL_TYPE_MASK

readonly JS_EVAL_TYPE_MASK: number

JS_EVAL_TYPE_MODULE

readonly JS_EVAL_TYPE_MODULE: number

module code

Source

packages/quickjs-ffi-types/src/ffi-types.ts:99


IntrinsicsFlags

IntrinsicsFlags: Object

Bitfield options for QTS_NewContext intrinsices

Type declaration

BaseObjects

readonly BaseObjects: number

BigDecimal

readonly BigDecimal: number

BigFloat

readonly BigFloat: number

BigInt

readonly BigInt: number

BignumExt

readonly BignumExt: number

Date

readonly Date: number

Eval

readonly Eval: number

JSON

readonly JSON: number

MapSet

readonly MapSet: number

OperatorOverloading

readonly OperatorOverloading: number

Promise

readonly Promise: number

Proxy

readonly Proxy: number

RegExp

readonly RegExp: number

RegExpCompiler

readonly RegExpCompiler: number

StringNormalize

readonly StringNormalize: number

TypedArrays

readonly TypedArrays: number

Source

packages/quickjs-ffi-types/src/ffi-types.ts:104


JSPromiseStateEnum

JSPromiseStateEnum: Object

Type declaration

Fulfilled

readonly Fulfilled: 1 = 1

Pending

readonly Pending: 0 = 0

Rejected

readonly Rejected: 2 = 2

Source

packages/quickjs-ffi-types/src/ffi-types.ts:114

Functions

assertSync()

assertSync<Args, R>(fn): (...args) => R

Type parameters

Args extends any[]

R

Parameters

fn: (...args) => R

Returns

Function

Parameters

• ...args: Args

Returns

R

Source

packages/quickjs-ffi-types/src/ffi-types.ts:119


Generated using typedoc-plugin-markdown and TypeDoc