quickjs_dart library

Classes

DartCallback
DartCallbackClass
JSClass
typedef struct JSClass JSClass;
JSContext
typedef struct JSContext JSContext;
JSEngine
JSEngineOptions
JSFlags
JSRuntime
//////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// typedef struct JSRuntime JSRuntime;
JSValue
JSValue has complex definitions(struct) in C, when defining the JSValue in dart, We are interested in it's type and transformation, like toDart or toJSVal Each JSValue has it's own value, which is Pointer of C, here we simplifying the process of Pointer converting We just use JSValue to hold the pointer, until it is released in C To see if the pointer is released, simply use JSValue.isFreed In practical, we use JSEngine to create JSValue or receive JSValue instead of using this class directly Because in JSEngine we have JSContext complete life-time management, and we don't want to pass JSContext and Pointer of JSValue as parameter everytime.
JSValueConst
PrefixPrinter
QuickJSError
Utf8Fix

Properties

addIntrinsicBaseObjects addIntrinsicBaseObjectsFunc
final
addIntrinsicBaseObjectsName → String
final
addIntrinsicBigDecimal addIntrinsicBigDecimalFunc
final
addIntrinsicBigDecimalName → String
final
addIntrinsicBigFloat addIntrinsicBigFloatFunc
final
addIntrinsicBigFloatName → String
final
addIntrinsicBigInt addIntrinsicBigIntFunc
final
addIntrinsicBigIntName → String
final
addIntrinsicDate addIntrinsicDateFunc
final
addIntrinsicDateName → String
final
addIntrinsicEval addIntrinsicEvalFunc
final
addIntrinsicEvalName → String
final
addIntrinsicJSON addIntrinsicJSONFunc
final
addIntrinsicJSONName → String
final
addIntrinsicMapSet addIntrinsicMapSetFunc
final
addIntrinsicMapSetName → String
final
addIntrinsicOperators addIntrinsicOperatorsFunc
final
addIntrinsicOperatorsName → String
final
addIntrinsicPromise addIntrinsicPromiseFunc
final
addIntrinsicPromiseName → String
final
addIntrinsicProxy addIntrinsicProxyFunc
final
addIntrinsicProxyName → String
final
addIntrinsicRegExp addIntrinsicRegExpFunc
final
addIntrinsicRegExpCompiler addIntrinsicRegExpCompilerFunc
final
addIntrinsicRegExpCompilerName → String
final
addIntrinsicRegExpName → String
final
addIntrinsicStringNormalize addIntrinsicStringNormalizeFunc
final
addIntrinsicStringNormalizeName → String
final
addIntrinsicTypedArrays addIntrinsicTypedArraysFunc
final
addIntrinsicTypedArraysName → String
final
androidlibName → String
final
atomToString → Pointer<NativeType> Function(Pointer<JSContext> context, int val)
final
atomToValue → Pointer<NativeType> Function(Pointer<JSContext> context, int val)
final
call callFunc
To invoke a JS_Object, pass with atom, argc,argv;
final
callName → String
final
dartCallJS dart_call_jsFunc
To invoke a JS_Object, pass with atom, argc,argv;
final
dartCallJSName → String
final
dartHandlerMap ↔ Map<int, DartCHandler>
read / write
definePropertyValue → int Function(Pointer<JSContext> context, Pointer<NativeType> thisObj, Pointer<NativeType> prop, Pointer<NativeType> value, int flags)
final
dupContext dupContextFunc
final
dupContextName → String
final
dupValue → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
JSValue dupValue(JSContext *ctx, JSValueConst v);
final
dupValueRT → Pointer<NativeType> Function(Pointer<JSRuntime> runtime, Pointer<NativeType> value)
JSValue dupValueRT(JSRuntime *rt, JSValueConst v);
final
dylib → DynamicLibrary
final
enableBignumExt enableBignumExtFunc
final
enableBignumExtName → String
final
eval evalFunc
To eval a piece of javascript string, and return JSValue Pointer [...]
final
evalFunction evalFunctionFunc
final
evalFunctionName → String
final
evalName → String
final
executePendingJob → Pointer<NativeType> Function(Pointer<JSRuntime>, int)
final
extractPointer → Pointer<NativeType> Function(Pointer<NativeType> value)
final
freeContext freeContextFunc
final
freeContextName → String
final
freeCString → void Function(Pointer<JSContext> ctx, Pointer<Utf8Fix> ptr)
void freeCString(JSContext *ctx, const char *ptr);
final
freeRuntime freeRuntimeFunc
final
freeRuntimeName → String
final
freeValue → void Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
void freeValue(JSContext *ctx, JSValue v);
final
freeValueRT → void Function(Pointer<JSRuntime> runtime, Pointer<NativeType> value)
void freeValueRT(JSRuntime *rt, JSValue v);
final
getClassProto getClassProtoFunc
final
getClassProtoName → String
final
getContextOpaque getContextOpaqueFunc
final
getContextOpaqueName → String
final
getGlobalObject → Pointer<NativeType> Function(Pointer<JSContext> value)
utils JSValue *getGlobalObject(JSContext *ctx);
final
getJSValueConstPointer → Pointer<NativeType> Function(Pointer<NativeType> argv, int index)
final
getPropertyStr → Pointer<NativeType> Function(Pointer<JSContext> context, Pointer<NativeType> thisObj, Pointer<Utf8Fix> prop)
final
getRuntime getRuntimeFunc
final
getRuntimeName → String
final
getRuntimeOpaque getRuntimeOpaqueFunc
final
getRuntimeOpaqueName → String
final
getValueTag → int Function(Pointer<NativeType> value)
int getValueTag(JSValue v);
final
globalPromiseGetter → String
final
installDartHook installDartHookFunc
final
installDartHookName → String
final
invoke invokeFunc
To invoke a JS_Object, pass with atom, argc,argv;
final
invokeName → String
final
iosLibName → String
final
isArray → int Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
int isArray(JSContext *ctx, JSValueConst val);
final
isBigDecimal → int Function(Pointer<NativeType> value)
JS_BOOL isBigDecimal(JSValueConst v);
final
isBigFloat → int Function(Pointer<NativeType> value)
JS_BOOL isBigFloat(JSValueConst v);
final
isBigInt → int Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
JS_BOOL isBigInt(JSContext *ctx, JSValueConst v);
final
isBool → int Function(Pointer<NativeType> value)
JS_BOOL isBool(JSValueConst v);
final
isConstructor → int Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
JS_BOOL isConstructor(JSContext* ctx, JSValueConst val);
final
isError → int Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
JS_BOOL isError(JSContext *ctx, JSValueConst val);
final
isExtensible → int Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
int isExtensible(JSContext *ctx, JSValueConst obj);
final
isFunction → int Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
JS_BOOL isFunction(JSContext* ctx, JSValueConst val);
final
isJobPending → int Function(Pointer<JSRuntime>)
final
isNan → int Function(Pointer<NativeType> value)
final
isNull → int Function(Pointer<NativeType> value)
JS_BOOL isNull(JSValueConst v);
final
isNumber → int Function(Pointer<NativeType> value)
JS_BOOL isNumber(JSValueConst v);
final
isObject → int Function(Pointer<NativeType> value)
JS_BOOL isObject(JSValueConst v);
final
isString → int Function(Pointer<NativeType> value)
JS_BOOL isString(JSValueConst v);
final
isSymbol → int Function(Pointer<NativeType> value)
JS_BOOL isSymbol(JSValueConst v);
final
isUndefined → int Function(Pointer<NativeType> value)
JS_BOOL isUndefined(JSValueConst v);
final
isUninitialized → int Function(Pointer<NativeType> value)
JS_BOOL isUninitialized(JSValueConst v);
final
jsonStringify → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<NativeType> object)
JSValue *JSONStringify(JSContext *ctx, JSValueConst *obj, JSValueConst *replacer, JSValueConst *space0);
final
jsValueCopy → Pointer<NativeType> Function(Pointer<NativeType> des, Pointer<NativeType> src)
final
logger ↔ Logger
read / write
newArray → Pointer<NativeType> Function(Pointer<JSContext> ctx)
JSValue newArray(JSContext *ctx);
final
newArrayBufferCopy → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<Uint8> buf, int len)
final
newAtom → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<Utf8Fix> str)
DART_EXTERN_C JSAtom *newAtom(JSContext *ctx, const char *str)
final
newAtomString → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<Utf8Fix> str)
JSValue newAtomString(JSContext *ctx, const char *str);
final
newBigInt64 → Pointer<NativeType> Function(Pointer<JSContext> ctx, int val)
JSValue newBigInt64(JSContext *ctx, int64_t v);
final
newBigUint64 → Pointer<NativeType> Function(Pointer<JSContext> ctx, int val)
JSValue newBigUint64(JSContext *ctx, uint64_t v);
final
newBool → Pointer<NativeType> Function(Pointer<JSContext> ctx, int val)
JSValue newBool(JSContext *ctx, JS_BOOL val);
final
newCatchOffset → Pointer<NativeType> Function(Pointer<JSContext> ctx, int val)
JSValue newCatchOffset(JSContext *ctx, int32_t val);
final
newContext newContextFunc
final
newContextName → String
final
newContextRaw newContextRawFunc
final
newContextRawName → String
final
newError → Pointer<NativeType> Function(Pointer<JSContext> ctx)
final
newFloat64 → Pointer<NativeType> Function(Pointer<JSContext> ctx, double val)
JSValue newFloat64(JSContext *ctx, double d);
final
newInt32 → Pointer<NativeType> Function(Pointer<JSContext> ctx, int val)
JSValue newInt32(JSContext *ctx, int32_t val);
final
newInt64 → Pointer<NativeType> Function(Pointer<JSContext> ctx, int val)
JSValue newInt64(JSContext *ctx, int64_t val);
final
newNull → Pointer<NativeType> Function(Pointer<JSContext> ctx)
JSValue newNull(JSContext *ctx);
final
newObject → Pointer<NativeType> Function(Pointer<JSContext> ctx)
JSValue newObject(JSContext *ctx);
final
newObjectClass → Pointer<NativeType> Function(Pointer<JSContext> ctx, int classId)
JSValue newObjectClass(JSContext *ctx, int classId);
final
newObjectProto → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<NativeType> proto)
JSValue newObjectProto(JSContext *ctx, JSValueConst proto);
final
newObjectProtoClass → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<NativeType> proto, int classId)
JSValue newObjectProtoClass(JSContext *ctx, JSValueConst proto, JSClassID class_id);
final
newPromiseCapability → Pointer<NativeType> Function(Pointer<JSContext>, Pointer<Pointer<NativeType>>)
final
newRuntime newRuntimeFunc
final
newRuntime2 newRuntime2Func
final
newRuntime2Name → String
final
newRuntimeName → String
final
newString → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<Utf8Fix> str)
JSValue newString(JSContext *ctx, const char *str);
final
newStringLen → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<Utf8Fix>, int val)
JSValue newStringLen(JSContext *ctx, const char *str1, size_t len1);
final
newUint32 → Pointer<NativeType> Function(Pointer<JSContext> ctx, int val)
JSValue newUint32(JSContext *ctx, uint32_t val);
final
newUndefined → Pointer<NativeType> Function(Pointer<JSContext> ctx)
JSValue newUndefined(JSContext *ctx);
final
operTypeof → int Function(Pointer<JSContext> ctx, Pointer<NativeType> val1)
final
parseJSON → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<Utf8Fix> stringBuff, int stringBuffLength, Pointer<Utf8Fix> fileName)
JSValue *parseJSON(JSContext *ctx, const char *buf, size_t buf_len, const char *filename);
final
parseJSON2 → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<Utf8Fix> stringBuff, int stringBuffLength, Pointer<Utf8Fix> fileName, int flags)
JSValue *parseJSON2(JSContext *ctx, const char *buf, size_t buf_len, const char *filename, int flags);
final
registerDartCallbackFP → void Function(Pointer<NativeType>)
final
reverse → Pointer<Utf8Fix> Function(Pointer<Utf8Fix> str, int length)
final
runGC runGCFunc
final
runGCName → String
final
setContextOpaque setContextOpaqueFunc
final
setContextOpaqueName → String
final
setGCThreshold setGCThresholdFunc
final
setGCThresholdName → String
final
setMaxStackSize setMaxStackSizeFunc
final
setMaxStackSizeName → String
final
setMemoryLimitName → String
final
setProp → void Function(Pointer<JSContext> context, Pointer<NativeType> thisObj, Pointer<NativeType> propName, Pointer<NativeType> propValue, int flags)
final
setPropertyInternal → int Function(Pointer<JSContext> context, Pointer<NativeType> thisObj, Pointer<NativeType> prop, Pointer<NativeType> value, int flags)
final
setPropertyStr → int Function(Pointer<JSContext> context, Pointer<NativeType> thisObj, Pointer<Utf8Fix> prop, Pointer<NativeType> value)
final
setPrototype → int Function(Pointer<JSContext> ctx, Pointer<NativeType> obj, Pointer<NativeType> protoVal)
DART_EXTERN_C int setPrototype(JSContext *ctx, JSValueConst *obj, JSValueConst *proto_val);
final
setRuntimeInfoName → String
final
setRuntimeOpaque setRuntimeOpaqueFunc
final
setRuntimeOpaqueName → String
final
setupRuntimeInfo setRuntimeInfoFunc
final
setupRuntimeLimit setMemoryLimitFunc
final
toBigInt64 → int Function(Pointer<JSContext> ctx, Pointer<Int64> pres, Pointer<NativeType> value)
int toBigInt64(JSContext *ctx, int64_t *pres, JSValueConst val);
final
toBool → int Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
transformer
final
toCString → Pointer<Utf8Fix> Function(Pointer<JSContext> ctx, Pointer<NativeType> value1)
const char *toCString(JSContext *ctx, JSValueConst val1);
final
toCStringLen → Pointer<Utf8Fix> Function(Pointer<JSContext> ctx, Pointer<Int32> plen, Pointer<NativeType> value1)
const char *toCStringLen(JSContext *ctx, size_t *plen, JSValueConst val1);
final
toCStringLen2 → Pointer<Utf8Fix> Function(Pointer<JSContext> ctx, Pointer<Int32> plen, Pointer<NativeType> value1, int cesu8)
const char *toCStringLen2(JSContext *ctx, size_t *plen, JSValueConst val1, JS_BOOL cesu8);
final
toFloat64 → double Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
double toFloat64(JSContext *ctx, double *pres, JSValueConst val);
final
toIndex → int Function(Pointer<JSContext> ctx, Pointer<Uint64> pres, Pointer<NativeType> value)
int toIndex(JSContext *ctx, uint64_t *plen, JSValueConst val);
final
toInt32 → int Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
int toInt32(JSContext *ctx, int32_t *pres, JSValueConst val);
final
toInt64 → int Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
int toInt64(JSContext *ctx, JSValueConst val);
final
toInt64Ext → int Function(Pointer<JSContext> ctx, Pointer<Int64> pres, Pointer<NativeType> value)
int toInt64Ext(JSContext *ctx, int64_t *pres, JSValueConst val);
final
toPropertyKey → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
JSValue toPropertyKey(JSContext *ctx, JSValueConst val);
final
toString → Pointer<NativeType> Function(Pointer<JSContext> ctx, Pointer<NativeType> value)
JSValue toString(JSContext *ctx, JSValueConst val);
final
toUint32 → int Function(Pointer<JSContext> ctx, Pointer<Uint32> pres, Pointer<NativeType> value)
int toUint32(JSContext *ctx, uint32_t *pres, JSValueConst val);
final

Functions

paramsExecutor([List<JSValue> params]) → Map<String, dynamic>
toArray(String msg, [String enc]) → List<int>
trimQuote(String fdId) → String
typeCheckHelper(dynamic value) → String

Enums

JSValueType
JSValueTypes for type reference
QuickJS_Errors

Typedefs

addIntrinsicBaseObjectsFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicBaseObjects(JSContext *ctx);
addIntrinsicBaseObjectsNative(Pointer<JSContext>) → Void
addIntrinsicBigDecimalFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicBigDecimal(JSContext *ctx);
addIntrinsicBigDecimalNative(Pointer<JSContext>) → Void
addIntrinsicBigFloatFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicBigFloat(JSContext *ctx);
addIntrinsicBigFloatNative(Pointer<JSContext>) → Void
addIntrinsicBigIntFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicBigInt(JSContext *ctx);
addIntrinsicBigIntNative(Pointer<JSContext>) → Void
addIntrinsicDateFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicDate(JSContext *ctx);
addIntrinsicDateNative(Pointer<JSContext>) → Void
addIntrinsicEvalFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicEval(JSContext *ctx);
addIntrinsicEvalNative(Pointer<JSContext>) → Void
addIntrinsicJSONFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicJSON(JSContext *ctx);
addIntrinsicJSONNative(Pointer<JSContext>) → Void
addIntrinsicMapSetFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicMapSet(JSContext *ctx);
addIntrinsicMapSetNative(Pointer<JSContext>) → Void
addIntrinsicOperatorsFunc(Pointer<JSContext> ctx) → void
enable operator overloading void JS_AddIntrinsicOperators(JSContext *ctx);
addIntrinsicOperatorsNative(Pointer<JSContext>) → Void
addIntrinsicPromiseFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicPromise(JSContext *ctx);
addIntrinsicPromiseNative(Pointer<JSContext>) → Void
addIntrinsicProxyFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicProxy(JSContext *ctx);
addIntrinsicProxyNative(Pointer<JSContext>) → Void
addIntrinsicRegExpCompilerFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicRegExpCompiler(JSContext *ctx);
addIntrinsicRegExpCompilerNative(Pointer<JSContext>) → Void
addIntrinsicRegExpFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicRegExp(JSContext *ctx);
addIntrinsicRegExpNative(Pointer<JSContext>) → Void
addIntrinsicStringNormalizeFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicStringNormalize(JSContext *ctx);
addIntrinsicStringNormalizeNative(Pointer<JSContext>) → Void
addIntrinsicTypedArraysFunc(Pointer<JSContext> ctx) → void
void JS_AddIntrinsicTypedArrays(JSContext *ctx);
addIntrinsicTypedArraysNative(Pointer<JSContext>) → Void
callFunc(Pointer<JSContext> ctx, Pointer<NativeType> funcObj, Pointer<NativeType> thisVal, int argc, Pointer<Pointer<NativeType>> argv) → Pointer<NativeType>
JSValue call(JSContext *ctx, JSValueConst *func_obj, JSValueConst *this_obj, int argc, JSValueConst *argv)
callNative(Pointer<JSContext> ctx, Pointer<NativeType> funcObj, Pointer<NativeType> thisVal, Int32 argc, Pointer<Pointer<NativeType>> argv) → Pointer<NativeType>
dart_call_jsFunc(Pointer<JSContext> ctx, Pointer<NativeType> funcObj, Pointer<NativeType> thisVal, int argc, Pointer<Pointer<NativeType>> argv) → Pointer<NativeType>
dart_call_jsNative(Pointer<JSContext> ctx, Pointer<NativeType> funcObj, Pointer<NativeType> thisVal, Int32 argc, Pointer<Pointer<NativeType>> argv) → Pointer<NativeType>
DartCHandler({Pointer<JSContext> context, JSValue thisVal, List<JSValue> args}) → dynamic
DartFunctionHandler(List<JSValue> args, JSEngine engine, JSValue thisVal) → dynamic
dupContextFunc(Pointer<JSContext> ctx) → Pointer<JSContext>
JSContext *JS_DupContext(JSContext *ctx);
dupContextNative(Pointer<JSContext>) → Pointer<JSContext>
enableBignumExtFunc(Pointer<JSContext> ctx, int enable) → void
enable "use math" void JS_EnableBignumExt(JSContext *ctx, JS_BOOL enable);
enableBignumExtNative(Pointer<JSContext>, Int32) → Void
evalFunc(Pointer<JSContext> ctx, Pointer<NativeType> script, int length) → Pointer<NativeType>
JSValue *eval(JSContext *ctx, const char *input, size_t input_len);
evalFunctionFunc(Pointer<NativeType> ctx, Pointer<NativeType> funcObj) → Pointer<NativeType>
JSValue *evalFunction(JSContext *ctx, JSValue *fun_obj);
evalFunctionNative(Pointer<NativeType> ctx, Pointer<NativeType> funcObj) → Pointer<NativeType>
evalNative(Pointer<JSContext> ctx, Pointer<NativeType> script, Int32 length) → Pointer<NativeType>
freeContextFunc(Pointer<JSContext> s) → void
void JS_FreeContext(JSContext *s);
freeContextNative(Pointer<JSContext>) → Void
freeRuntimeFunc(Pointer<JSRuntime> rt) → void
void JS_FreeRuntime(JSRuntime *rt);
freeRuntimeNative(Pointer<JSRuntime>) → Void
getClassProtoFunc(Pointer<JSContext> ctx, int classId) → Pointer<NativeType>
JSValue JS_GetClassProto(JSContext *ctx, JSClassID class_id);
getClassProtoNative(Pointer<JSContext>, Uint32) → Pointer<NativeType>
getContextOpaqueFunc(Pointer<JSContext> ctx) → Pointer<void>
void *JS_GetContextOpaque(JSContext *ctx);
getContextOpaqueNative(Pointer<JSContext> ctx) → Pointer<Void>
getRuntimeFunc(Pointer<JSContext> ctx) → Pointer<JSRuntime>
JSRuntime *JS_GetRuntime(JSContext *ctx);
getRuntimeNative(Pointer<JSContext>) → Pointer<JSRuntime>
getRuntimeOpaqueFunc(Pointer<JSRuntime> rt) → void
void *JS_GetRuntimeOpaque(JSRuntime *rt);
getRuntimeOpaqueNative(Pointer<JSRuntime>) → Void
installDartHookFunc(Pointer<JSContext> ctx, Pointer<NativeType> thisVal, Pointer<NativeType> funcName, int funcId) → void
DART_EXTERN_C void installDartHook(JSContext *ctx, JSValueConst *this_val, JSValueConst funcName, JSValue fun_data)
installDartHookNative(Pointer<JSContext> ctx, Pointer<NativeType> thisVal, Pointer<NativeType> funcName, Int64 funcId) → Void
invokeFunc(Pointer<JSContext> ctx, Pointer<NativeType> thisVal, Pointer<NativeType> atom, int argc, Pointer<Pointer<NativeType>> argv) → Pointer<NativeType>
JSValue invoke(JSContext *ctx, JSValueConst *this_val, uint_32 atom, int argc, JSValueConst *argv);
invokeNative(Pointer<JSContext> ctx, Pointer<NativeType> thisVal, Pointer<NativeType> atom, Int32 argc, Pointer<Pointer<NativeType>> argv) → Pointer<NativeType>
newContextFunc(Pointer<JSRuntime> rt) → Pointer<JSContext>
JSContext *JS_NewContext(JSRuntime *rt);
newContextNative(Pointer<JSRuntime>) → Pointer<JSContext>
newContextRawFunc(Pointer<JSRuntime> rt) → Pointer<JSContext>
JSContext *JS_NewContextRaw(JSRuntime *rt);
newContextRawNative(Pointer<JSRuntime>) → Pointer<JSContext>
newRuntime2Func(Pointer<JSRuntime>, void) → void
JSRuntime *JS_NewRuntime2(const JSMallocFunctions *mf, void *opaque);
newRuntime2Native(Pointer<JSRuntime>, Void) → Void
newRuntimeFunc() → Pointer<JSRuntime>
JSValue has complex defined in C apis. we use here to identify the datatype only with dart class JSValue extends Struct {} JSRuntime *JS_NewRuntime(void);
newRuntimeNative() → Pointer<JSRuntime>
runGCFunc(Pointer<JSRuntime> rt) → void
typedef void JS_MarkFunc(JSRuntime *rt, JSGCObjectHeader *gp); void JS_RunGC(JSRuntime *rt);
runGCNative(Pointer<JSRuntime>) → Void
setContextOpaqueFunc(Pointer<JSContext> ctx) → Pointer<void>
void JS_SetContextOpaque(JSContext *ctx, void *opaque);
setContextOpaqueNative(Pointer<JSContext> ctx) → Pointer<Void>
setGCThresholdFunc(Pointer<JSRuntime> rt, int gcThreshold) → void
void JS_SetGCThreshold(JSRuntime *rt, size_t gc_threshold);
setGCThresholdNative(Pointer<JSRuntime>, IntPtr) → Void
setMaxStackSizeFunc(Pointer<JSRuntime> rt, int stackSize) → void
void JS_SetMaxStackSize(JSRuntime *rt, size_t stack_size);
setMaxStackSizeNative(Pointer<JSRuntime>, IntPtr) → Void
setMemoryLimitFunc(Pointer<JSRuntime> rt, int limit) → void
void JS_SetMemoryLimit(JSRuntime *rt, size_t limit);
setMemoryLimitNative(Pointer<JSRuntime>, IntPtr) → Void
setRuntimeInfoFunc(Pointer<JSRuntime> rt, Pointer<Utf8> info) → void
info lifetime must exceed that of rt void JS_SetRuntimeInfo(JSRuntime *rt, const char *info);
setRuntimeInfoNative(Pointer<NativeType>, Pointer<NativeType>) → Void
setRuntimeOpaqueFunc(Pointer<JSRuntime> rt, void opaque) → void
void JS_SetRuntimeOpaque(JSRuntime *rt, void *opaque); ????? void *
setRuntimeOpaqueNative(Pointer<JSRuntime>, Void) → Void