public static extern int JS_HasProperty(JSContext ctx, JSValueConst this_obj, JSAtom prop);
public static extern JSValue JS_Invoke(JSContext ctx, JSValueConst this_val, JSAtom atom, int argc, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 3)] JSValueConst[] argv);
public static extern int JS_SetPropertyInternal(JSContext ctx, JSValueConst this_obj, JSAtom prop, JSValue val, int flags);
public static int JS_SetProperty(JSContext ctx, JSValueConst this_obj, JSAtom prop, JSValue val) { return(JS_SetPropertyInternal(ctx, this_obj, prop, val, (int)JSPropFlags.JS_PROP_THROW)); }
public static extern JSValue JSB_NewPropertyObject(JSContext ctx, JSValueConst this_obj, JSAtom name, JSPropFlags flags);
public static JSValue JSB_NewCFunction(JSContext ctx, JSGetterCFunctionMagic func, JSAtom atom, int magic) { #if JSB_UNITYLESS GCHandle.Alloc(func); #endif var fn = Marshal.GetFunctionPointerForDelegate(func); return(JSB_NewCFunction(ctx, fn, atom, 0, JSCFunctionEnum.JS_CFUNC_getter_magic, magic)); }
public static JSValue JSB_NewCFunction(JSContext ctx, JSGetterCFunction func, JSAtom atom) { var fn = Marshal.GetFunctionPointerForDelegate(func); return(JSB_NewCFunction(ctx, fn, atom, 0, JSCFunctionEnum.JS_CFUNC_getter, 0)); }
public static JSValue JS_GetProperty(JSContext ctx, JSValueConst this_obj, JSAtom prop) { return(JS_GetPropertyInternal(ctx, this_obj, prop, this_obj, 0)); }
public static extern void JS_FreeAtomRT(JSRuntime rt, JSAtom v);
public static extern JSValue JS_AtomToString(JSContext ctx, JSAtom atom);
public static extern void JS_FreeAtom(JSContext ctx, JSAtom v);
public static extern JSAtom JS_DupAtom(JSContext ctx, JSAtom v);
public static JSValue JSB_NewCFunctionMagic(JSContext ctx, JSCFunctionMagic func, JSAtom atom, int length, JSCFunctionEnum cproto, int magic) { #if JSB_UNITYLESS GCHandle.Alloc(func); #endif var fn = Marshal.GetFunctionPointerForDelegate(func); return(JSB_NewCFunctionMagic(ctx, fn, atom, length, cproto, magic)); }
public static extern int JS_DeleteProperty(JSContext ctx, JSValueConst obj, JSAtom prop, int flags);
public static JSValue JSB_NewCFunction(JSContext ctx, JSSetterCFunctionMagic func, JSAtom atom, int magic) { var fn = Marshal.GetFunctionPointerForDelegate(func); return(JSB_NewCFunction(ctx, fn, atom, 1, JSCFunctionEnum.JS_CFUNC_setter_magic, magic)); }
public static extern JSValue JS_GetPropertyInternal(JSContext ctx, JSValueConst obj, JSAtom prop, JSValueConst receiver, JS_BOOL throw_ref_error);
public static extern JSValue JSB_NewCFunctionMagic(JSContext ctx, IntPtr func, JSAtom atom, int length, JSCFunctionEnum cproto, int magic);
public static extern unsafe int JS_GetOwnProperty(JSContext ctx, [In] JSPropertyDescriptor *desc, JSValueConst obj, JSAtom prop);
public static JSValue JSB_NewCFunctionMagic(JSContext ctx, JSCFunctionMagic func, JSAtom atom, int length, JSCFunctionEnum cproto, int magic) { var fn = Marshal.GetFunctionPointerForDelegate(func); return(JSB_NewCFunctionMagic(ctx, fn, atom, length, cproto, magic)); }
public static extern int JS_DefineProperty(JSContext ctx, JSValueConst this_obj, JSAtom prop, JSValueConst val, JSValueConst getter, JSValueConst setter, JSPropFlags flags);
public static JSValue JSB_NewCFunction(JSContext ctx, JSSetterCFunction func, JSAtom atom) { #if JSB_UNITYLESS GCHandle.Alloc(func); #endif var fn = Marshal.GetFunctionPointerForDelegate(func); return(JSB_NewCFunction(ctx, fn, atom, 1, JSCFunctionEnum.JS_CFUNC_setter, 0)); }