Exemple #1
0
 public static bool JS_IsObject(JSValueConst v)
 {
     return(v.tag == JS_TAG_OBJECT);
 }
Exemple #2
0
 public static extern int JS_SetPropertyInt64(JSContext ctx, JSValueConst this_obj, int64_t idx, JSValue val);
Exemple #3
0
 public static extern unsafe int JS_SetPropertyStr(JSContext ctx, [In] JSValueConst this_obj, byte *prop,
                                                   JSValue val);
Exemple #4
0
 public static extern void JS_SetConstructor(JSContext ctx, JSValueConst func_obj, JSValueConst proto);
Exemple #5
0
 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));
 }
Exemple #6
0
 public static extern JS_BOOL JS_IsFunction(JSContext ctx, JSValueConst val);
Exemple #7
0
 public static extern JS_BOOL JS_SetConstructorBit(JSContext ctx, JSValueConst func_obj, JS_BOOL val);
Exemple #8
0
 public static extern JSValue JS_GetPropertyInternal(JSContext ctx, JSValueConst obj, JSAtom prop,
                                                     JSValueConst receiver, JS_BOOL throw_ref_error);
Exemple #9
0
 // 增引用, 需要 FreeValue
 public static JSValue JS_GetProperty(JSContext ctx, JSValueConst this_obj, JSAtom prop)
 {
     return(JS_GetPropertyInternal(ctx, this_obj, prop, this_obj, 0));
 }
Exemple #10
0
 public static extern int JS_IsInstanceOf(JSContext ctx, JSValueConst val, JSValueConst obj);
Exemple #11
0
 public static extern JSValue JS_GetPropertyUint32(JSContext ctx, JSValueConst this_obj, uint32_t idx);
Exemple #12
0
 public static extern IntPtr JS_GetArrayBuffer(JSContext ctx, out size_t psize, JSValueConst obj);
Exemple #13
0
 public static extern JSValue JS_DupValueRT(JSRuntime rt, JSValueConst v);
Exemple #14
0
 public static extern JSValue JS_DupValue(JSContext ctx, JSValueConst v);
Exemple #15
0
 public static extern JSValue JS_NewObjectProtoClass(JSContext ctx, JSValueConst proto, JSClassID class_id);
Exemple #16
0
 public static extern unsafe int JS_GetOwnProperty(JSContext ctx, [In] JSPropertyDescriptor *desc, JSValueConst obj, JSAtom prop);
Exemple #17
0
 public static extern JSValue JS_NewObjectProto(JSContext ctx, JSValueConst proto);
Exemple #18
0
 public static extern JSValue JSB_NewPropertyObjectStr(JSContext ctx, JSValueConst this_obj,
                                                       [MarshalAs(UnmanagedType.LPStr)] string name, JSPropFlags flags);
Exemple #19
0
 public static extern JS_BOOL JS_IsConstructor(JSContext ctx, JSValueConst val);
Exemple #20
0
 public static extern JSValue JSB_NewPropertyObject(JSContext ctx, JSValueConst this_obj,
                                                    JSAtom name, JSPropFlags flags);
Exemple #21
0
 public static extern int JS_IsArray(JSContext ctx, JSValueConst val);
Exemple #22
0
 public static extern JSValue JS_GetPropertyStr(JSContext ctx, JSValueConst this_obj,
                                                [MarshalAs(UnmanagedType.LPStr)] string prop);
Exemple #23
0
 public static extern int JS_SetPropertyInternal(JSContext ctx, JSValueConst this_obj, JSAtom prop, JSValue val,
                                                 int flags);
Exemple #24
0
 public static extern int JS_DefinePropertyValueStr(JSContext ctx, JSValueConst this_obj,
                                                    [MarshalAs(UnmanagedType.LPStr)] string prop,
                                                    JSValue val, JSPropFlags flags);
Exemple #25
0
 public static extern int JS_SetPropertyUint32(JSContext ctx, JSValueConst this_obj, uint32_t idx, JSValue val);
Exemple #26
0
 public static extern int JS_DefinePropertyValue(JSContext ctx, JSValueConst this_obj,
                                                 JSAtom prop, JSValue val, JSPropFlags flags);
Exemple #27
0
 public static extern int JS_SetPropertyStr(JSContext ctx, [In] JSValueConst this_obj,
                                            [MarshalAs(UnmanagedType.LPStr)] string prop, JSValue val);
Exemple #28
0
 public static extern JSAtom JS_ValueToAtom(JSContext ctx, JSValueConst val);
Exemple #29
0
 public static extern int JS_HasProperty(JSContext ctx, JSValueConst this_obj, JSAtom prop);
Exemple #30
0
 public static bool JS_IsSymbol(JSValueConst v)
 {
     return(v.tag == JS_TAG_SYMBOL);
 }