Skip to main content

rquickjs_sys/bindings/
x86_64-unknown-linux-gnu.rs

1/* automatically generated by rust-bindgen 0.72.1 */
2
3pub const JS_PROP_CONFIGURABLE: u32 = 1;
4pub const JS_PROP_WRITABLE: u32 = 2;
5pub const JS_PROP_ENUMERABLE: u32 = 4;
6pub const JS_PROP_C_W_E: u32 = 7;
7pub const JS_PROP_LENGTH: u32 = 8;
8pub const JS_PROP_TMASK: u32 = 48;
9pub const JS_PROP_NORMAL: u32 = 0;
10pub const JS_PROP_GETSET: u32 = 16;
11pub const JS_PROP_VARREF: u32 = 32;
12pub const JS_PROP_AUTOINIT: u32 = 48;
13pub const JS_PROP_HAS_SHIFT: u32 = 8;
14pub const JS_PROP_HAS_CONFIGURABLE: u32 = 256;
15pub const JS_PROP_HAS_WRITABLE: u32 = 512;
16pub const JS_PROP_HAS_ENUMERABLE: u32 = 1024;
17pub const JS_PROP_HAS_GET: u32 = 2048;
18pub const JS_PROP_HAS_SET: u32 = 4096;
19pub const JS_PROP_HAS_VALUE: u32 = 8192;
20pub const JS_PROP_THROW: u32 = 16384;
21pub const JS_PROP_THROW_STRICT: u32 = 32768;
22pub const JS_PROP_NO_ADD: u32 = 65536;
23pub const JS_PROP_NO_EXOTIC: u32 = 131072;
24pub const JS_PROP_DEFINE_PROPERTY: u32 = 262144;
25pub const JS_PROP_REFLECT_DEFINE_PROPERTY: u32 = 524288;
26pub const JS_DEFAULT_STACK_SIZE: u32 = 1048576;
27pub const JS_EVAL_TYPE_GLOBAL: u32 = 0;
28pub const JS_EVAL_TYPE_MODULE: u32 = 1;
29pub const JS_EVAL_TYPE_DIRECT: u32 = 2;
30pub const JS_EVAL_TYPE_INDIRECT: u32 = 3;
31pub const JS_EVAL_TYPE_MASK: u32 = 3;
32pub const JS_EVAL_FLAG_STRICT: u32 = 8;
33pub const JS_EVAL_FLAG_UNUSED: u32 = 16;
34pub const JS_EVAL_FLAG_COMPILE_ONLY: u32 = 32;
35pub const JS_EVAL_FLAG_BACKTRACE_BARRIER: u32 = 64;
36pub const JS_EVAL_FLAG_ASYNC: u32 = 128;
37pub const JS_RUNTIME_OPTIONS_VERSION: u32 = 1;
38pub const JS_DUMP_BYTECODE_FINAL: u32 = 1;
39pub const JS_DUMP_BYTECODE_PASS2: u32 = 2;
40pub const JS_DUMP_BYTECODE_PASS1: u32 = 4;
41pub const JS_DUMP_BYTECODE_HEX: u32 = 16;
42pub const JS_DUMP_BYTECODE_PC2LINE: u32 = 32;
43pub const JS_DUMP_BYTECODE_STACK: u32 = 64;
44pub const JS_DUMP_BYTECODE_STEP: u32 = 128;
45pub const JS_DUMP_READ_OBJECT: u32 = 256;
46pub const JS_DUMP_FREE: u32 = 512;
47pub const JS_DUMP_GC: u32 = 1024;
48pub const JS_DUMP_GC_FREE: u32 = 2048;
49pub const JS_DUMP_MODULE_RESOLVE: u32 = 4096;
50pub const JS_DUMP_PROMISE: u32 = 8192;
51pub const JS_DUMP_LEAKS: u32 = 16384;
52pub const JS_DUMP_ATOM_LEAKS: u32 = 32768;
53pub const JS_DUMP_MEM: u32 = 65536;
54pub const JS_DUMP_OBJECTS: u32 = 131072;
55pub const JS_DUMP_ATOMS: u32 = 262144;
56pub const JS_DUMP_SHAPES: u32 = 524288;
57pub const JS_ABORT_ON_LEAKS: u32 = 1097728;
58pub const JS_ATOM_NULL: u32 = 0;
59pub const JS_CALL_FLAG_CONSTRUCTOR: u32 = 1;
60pub const JS_EVAL_OPTIONS_VERSION: u32 = 1;
61pub const JS_INVALID_CLASS_ID: u32 = 0;
62pub const JS_GPN_STRING_MASK: u32 = 1;
63pub const JS_GPN_SYMBOL_MASK: u32 = 2;
64pub const JS_GPN_PRIVATE_MASK: u32 = 4;
65pub const JS_GPN_ENUM_ONLY: u32 = 16;
66pub const JS_GPN_SET_ENUM: u32 = 32;
67pub const JS_WRITE_OBJ_BYTECODE: u32 = 1;
68pub const JS_WRITE_OBJ_BSWAP: u32 = 0;
69pub const JS_WRITE_OBJ_SAB: u32 = 4;
70pub const JS_WRITE_OBJ_REFERENCE: u32 = 8;
71pub const JS_WRITE_OBJ_STRIP_SOURCE: u32 = 16;
72pub const JS_WRITE_OBJ_STRIP_DEBUG: u32 = 32;
73pub const JS_READ_OBJ_BYTECODE: u32 = 1;
74pub const JS_READ_OBJ_ROM_DATA: u32 = 0;
75pub const JS_READ_OBJ_SAB: u32 = 4;
76pub const JS_READ_OBJ_REFERENCE: u32 = 8;
77pub const JS_DEF_CFUNC: u32 = 0;
78pub const JS_DEF_CGETSET: u32 = 1;
79pub const JS_DEF_CGETSET_MAGIC: u32 = 2;
80pub const JS_DEF_PROP_STRING: u32 = 3;
81pub const JS_DEF_PROP_INT32: u32 = 4;
82pub const JS_DEF_PROP_INT64: u32 = 5;
83pub const JS_DEF_PROP_DOUBLE: u32 = 6;
84pub const JS_DEF_PROP_UNDEFINED: u32 = 7;
85pub const JS_DEF_OBJECT: u32 = 8;
86pub const JS_DEF_ALIAS: u32 = 9;
87pub const JS_DEF_PROP_SYMBOL: u32 = 10;
88pub const JS_DEF_PROP_BOOL: u32 = 11;
89pub type size_t = ::core::ffi::c_ulong;
90#[repr(C)]
91#[derive(Debug, Copy, Clone)]
92pub struct JSRuntime {
93    _unused: [u8; 0],
94}
95#[repr(C)]
96#[derive(Debug, Copy, Clone)]
97pub struct JSContext {
98    _unused: [u8; 0],
99}
100#[repr(C)]
101#[derive(Debug, Copy, Clone)]
102pub struct JSObject {
103    _unused: [u8; 0],
104}
105pub type JSClassID = u32;
106pub type JSAtom = u32;
107pub const JS_TAG_FIRST: _bindgen_ty_3 = -9;
108pub const JS_TAG_BIG_INT: _bindgen_ty_3 = -9;
109pub const JS_TAG_SYMBOL: _bindgen_ty_3 = -8;
110pub const JS_TAG_STRING: _bindgen_ty_3 = -7;
111pub const JS_TAG_STRING_ROPE: _bindgen_ty_3 = -6;
112pub const JS_TAG_MODULE: _bindgen_ty_3 = -3;
113pub const JS_TAG_FUNCTION_BYTECODE: _bindgen_ty_3 = -2;
114pub const JS_TAG_OBJECT: _bindgen_ty_3 = -1;
115pub const JS_TAG_INT: _bindgen_ty_3 = 0;
116pub const JS_TAG_BOOL: _bindgen_ty_3 = 1;
117pub const JS_TAG_NULL: _bindgen_ty_3 = 2;
118pub const JS_TAG_UNDEFINED: _bindgen_ty_3 = 3;
119pub const JS_TAG_UNINITIALIZED: _bindgen_ty_3 = 4;
120pub const JS_TAG_CATCH_OFFSET: _bindgen_ty_3 = 5;
121pub const JS_TAG_EXCEPTION: _bindgen_ty_3 = 6;
122pub const JS_TAG_SHORT_BIG_INT: _bindgen_ty_3 = 7;
123pub const JS_TAG_FLOAT64: _bindgen_ty_3 = 8;
124pub type _bindgen_ty_3 = ::core::ffi::c_int;
125#[repr(C)]
126#[derive(Copy, Clone)]
127pub union JSValueUnion {
128    pub uint64: u64,
129    pub float64: f64,
130    pub ptr: *mut ::core::ffi::c_void,
131    pub short_big_int: i32,
132}
133#[allow(clippy::unnecessary_operation, clippy::identity_op)]
134const _: () = {
135    ["Size of JSValueUnion"][::core::mem::size_of::<JSValueUnion>() - 8usize];
136    ["Alignment of JSValueUnion"][::core::mem::align_of::<JSValueUnion>() - 8usize];
137    ["Offset of field: JSValueUnion::uint64"]
138        [::core::mem::offset_of!(JSValueUnion, uint64) - 0usize];
139    ["Offset of field: JSValueUnion::float64"]
140        [::core::mem::offset_of!(JSValueUnion, float64) - 0usize];
141    ["Offset of field: JSValueUnion::ptr"][::core::mem::offset_of!(JSValueUnion, ptr) - 0usize];
142    ["Offset of field: JSValueUnion::short_big_int"]
143        [::core::mem::offset_of!(JSValueUnion, short_big_int) - 0usize];
144};
145#[repr(C)]
146#[derive(Copy, Clone)]
147pub struct JSValue {
148    pub u: JSValueUnion,
149    pub tag: i64,
150}
151#[allow(clippy::unnecessary_operation, clippy::identity_op)]
152const _: () = {
153    ["Size of JSValue"][::core::mem::size_of::<JSValue>() - 16usize];
154    ["Alignment of JSValue"][::core::mem::align_of::<JSValue>() - 8usize];
155    ["Offset of field: JSValue::u"][::core::mem::offset_of!(JSValue, u) - 0usize];
156    ["Offset of field: JSValue::tag"][::core::mem::offset_of!(JSValue, tag) - 8usize];
157};
158pub type JSCFunction = ::core::option::Option<
159    unsafe extern "C" fn(
160        ctx: *mut JSContext,
161        this_val: JSValue,
162        argc: ::core::ffi::c_int,
163        argv: *mut JSValue,
164    ) -> JSValue,
165>;
166pub type JSCFunctionMagic = ::core::option::Option<
167    unsafe extern "C" fn(
168        ctx: *mut JSContext,
169        this_val: JSValue,
170        argc: ::core::ffi::c_int,
171        argv: *mut JSValue,
172        magic: ::core::ffi::c_int,
173    ) -> JSValue,
174>;
175pub type JSCFunctionData = ::core::option::Option<
176    unsafe extern "C" fn(
177        ctx: *mut JSContext,
178        this_val: JSValue,
179        argc: ::core::ffi::c_int,
180        argv: *mut JSValue,
181        magic: ::core::ffi::c_int,
182        func_data: *mut JSValue,
183    ) -> JSValue,
184>;
185pub type JSCClosure = ::core::option::Option<
186    unsafe extern "C" fn(
187        ctx: *mut JSContext,
188        this_val: JSValue,
189        argc: ::core::ffi::c_int,
190        argv: *mut JSValue,
191        magic: ::core::ffi::c_int,
192        opaque: *mut ::core::ffi::c_void,
193    ) -> JSValue,
194>;
195#[repr(C)]
196#[derive(Debug, Copy, Clone)]
197pub struct JSMallocFunctions {
198    pub js_calloc: ::core::option::Option<
199        unsafe extern "C" fn(
200            opaque: *mut ::core::ffi::c_void,
201            count: size_t,
202            size: size_t,
203        ) -> *mut ::core::ffi::c_void,
204    >,
205    pub js_malloc: ::core::option::Option<
206        unsafe extern "C" fn(
207            opaque: *mut ::core::ffi::c_void,
208            size: size_t,
209        ) -> *mut ::core::ffi::c_void,
210    >,
211    pub js_free: ::core::option::Option<
212        unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void, ptr: *mut ::core::ffi::c_void),
213    >,
214    pub js_realloc: ::core::option::Option<
215        unsafe extern "C" fn(
216            opaque: *mut ::core::ffi::c_void,
217            ptr: *mut ::core::ffi::c_void,
218            size: size_t,
219        ) -> *mut ::core::ffi::c_void,
220    >,
221    pub js_malloc_usable_size:
222        ::core::option::Option<unsafe extern "C" fn(ptr: *const ::core::ffi::c_void) -> size_t>,
223}
224#[allow(clippy::unnecessary_operation, clippy::identity_op)]
225const _: () = {
226    ["Size of JSMallocFunctions"][::core::mem::size_of::<JSMallocFunctions>() - 40usize];
227    ["Alignment of JSMallocFunctions"][::core::mem::align_of::<JSMallocFunctions>() - 8usize];
228    ["Offset of field: JSMallocFunctions::js_calloc"]
229        [::core::mem::offset_of!(JSMallocFunctions, js_calloc) - 0usize];
230    ["Offset of field: JSMallocFunctions::js_malloc"]
231        [::core::mem::offset_of!(JSMallocFunctions, js_malloc) - 8usize];
232    ["Offset of field: JSMallocFunctions::js_free"]
233        [::core::mem::offset_of!(JSMallocFunctions, js_free) - 16usize];
234    ["Offset of field: JSMallocFunctions::js_realloc"]
235        [::core::mem::offset_of!(JSMallocFunctions, js_realloc) - 24usize];
236    ["Offset of field: JSMallocFunctions::js_malloc_usable_size"]
237        [::core::mem::offset_of!(JSMallocFunctions, js_malloc_usable_size) - 32usize];
238};
239pub type JSRandomBytesFunc = ::core::option::Option<
240    unsafe extern "C" fn(
241        opaque: *mut ::core::ffi::c_void,
242        buf: *mut u8,
243        len: size_t,
244    ) -> ::core::ffi::c_int,
245>;
246#[repr(C)]
247#[derive(Debug, Copy, Clone)]
248pub struct JSRuntimeOptions {
249    pub version: ::core::ffi::c_int,
250    pub malloc_functions: *const JSMallocFunctions,
251    pub malloc_opaque: *mut ::core::ffi::c_void,
252    pub random_bytes: JSRandomBytesFunc,
253    pub random_opaque: *mut ::core::ffi::c_void,
254}
255#[allow(clippy::unnecessary_operation, clippy::identity_op)]
256const _: () = {
257    ["Size of JSRuntimeOptions"][::core::mem::size_of::<JSRuntimeOptions>() - 40usize];
258    ["Alignment of JSRuntimeOptions"][::core::mem::align_of::<JSRuntimeOptions>() - 8usize];
259    ["Offset of field: JSRuntimeOptions::version"]
260        [::core::mem::offset_of!(JSRuntimeOptions, version) - 0usize];
261    ["Offset of field: JSRuntimeOptions::malloc_functions"]
262        [::core::mem::offset_of!(JSRuntimeOptions, malloc_functions) - 8usize];
263    ["Offset of field: JSRuntimeOptions::malloc_opaque"]
264        [::core::mem::offset_of!(JSRuntimeOptions, malloc_opaque) - 16usize];
265    ["Offset of field: JSRuntimeOptions::random_bytes"]
266        [::core::mem::offset_of!(JSRuntimeOptions, random_bytes) - 24usize];
267    ["Offset of field: JSRuntimeOptions::random_opaque"]
268        [::core::mem::offset_of!(JSRuntimeOptions, random_opaque) - 32usize];
269};
270pub type JSRuntimeFinalizer =
271    ::core::option::Option<unsafe extern "C" fn(rt: *mut JSRuntime, arg: *mut ::core::ffi::c_void)>;
272#[repr(C)]
273#[derive(Debug, Copy, Clone)]
274pub struct JSGCObjectHeader {
275    _unused: [u8; 0],
276}
277unsafe extern "C" {
278    pub fn JS_NewRuntime() -> *mut JSRuntime;
279}
280unsafe extern "C" {
281    pub fn JS_SetRuntimeInfo(rt: *mut JSRuntime, info: *const ::core::ffi::c_char);
282}
283unsafe extern "C" {
284    pub fn JS_SetMemoryLimit(rt: *mut JSRuntime, limit: size_t);
285}
286unsafe extern "C" {
287    pub fn JS_SetDumpFlags(rt: *mut JSRuntime, flags: u64);
288}
289unsafe extern "C" {
290    pub fn JS_GetDumpFlags(rt: *mut JSRuntime) -> u64;
291}
292unsafe extern "C" {
293    pub fn JS_GetGCThreshold(rt: *mut JSRuntime) -> size_t;
294}
295unsafe extern "C" {
296    pub fn JS_SetGCThreshold(rt: *mut JSRuntime, gc_threshold: size_t);
297}
298unsafe extern "C" {
299    pub fn JS_SetMaxStackSize(rt: *mut JSRuntime, stack_size: size_t);
300}
301unsafe extern "C" {
302    pub fn JS_UpdateStackTop(rt: *mut JSRuntime);
303}
304unsafe extern "C" {
305    pub fn JS_NewRuntime2(
306        mf: *const JSMallocFunctions,
307        opaque: *mut ::core::ffi::c_void,
308    ) -> *mut JSRuntime;
309}
310unsafe extern "C" {
311    pub fn JS_NewRuntime3(options: *const JSRuntimeOptions) -> *mut JSRuntime;
312}
313unsafe extern "C" {
314    pub fn JS_FreeRuntime(rt: *mut JSRuntime);
315}
316unsafe extern "C" {
317    pub fn JS_GetRuntimeOpaque(rt: *mut JSRuntime) -> *mut ::core::ffi::c_void;
318}
319unsafe extern "C" {
320    pub fn JS_SetRuntimeOpaque(rt: *mut JSRuntime, opaque: *mut ::core::ffi::c_void);
321}
322unsafe extern "C" {
323    pub fn JS_AddRuntimeFinalizer(
324        rt: *mut JSRuntime,
325        finalizer: JSRuntimeFinalizer,
326        arg: *mut ::core::ffi::c_void,
327    ) -> ::core::ffi::c_int;
328}
329pub type JS_MarkFunc =
330    ::core::option::Option<unsafe extern "C" fn(rt: *mut JSRuntime, gp: *mut JSGCObjectHeader)>;
331unsafe extern "C" {
332    pub fn JS_MarkValue(rt: *mut JSRuntime, val: JSValue, mark_func: JS_MarkFunc);
333}
334unsafe extern "C" {
335    pub fn JS_RunGC(rt: *mut JSRuntime);
336}
337unsafe extern "C" {
338    pub fn JS_IsLiveObject(rt: *mut JSRuntime, obj: JSValue) -> bool;
339}
340unsafe extern "C" {
341    pub fn JS_NewContext(rt: *mut JSRuntime) -> *mut JSContext;
342}
343unsafe extern "C" {
344    pub fn JS_FreeContext(s: *mut JSContext);
345}
346unsafe extern "C" {
347    pub fn JS_DupContext(ctx: *mut JSContext) -> *mut JSContext;
348}
349unsafe extern "C" {
350    pub fn JS_GetContextOpaque(ctx: *mut JSContext) -> *mut ::core::ffi::c_void;
351}
352unsafe extern "C" {
353    pub fn JS_SetContextOpaque(ctx: *mut JSContext, opaque: *mut ::core::ffi::c_void);
354}
355unsafe extern "C" {
356    pub fn JS_GetRuntime(ctx: *mut JSContext) -> *mut JSRuntime;
357}
358unsafe extern "C" {
359    pub fn JS_SetClassProto(ctx: *mut JSContext, class_id: JSClassID, obj: JSValue);
360}
361unsafe extern "C" {
362    pub fn JS_GetClassProto(ctx: *mut JSContext, class_id: JSClassID) -> JSValue;
363}
364unsafe extern "C" {
365    pub fn JS_GetFunctionProto(ctx: *mut JSContext) -> JSValue;
366}
367unsafe extern "C" {
368    pub fn JS_NewContextRaw(rt: *mut JSRuntime) -> *mut JSContext;
369}
370unsafe extern "C" {
371    pub fn JS_AddIntrinsicBaseObjects(ctx: *mut JSContext) -> ::core::ffi::c_int;
372}
373unsafe extern "C" {
374    pub fn JS_AddIntrinsicDate(ctx: *mut JSContext) -> ::core::ffi::c_int;
375}
376unsafe extern "C" {
377    pub fn JS_AddIntrinsicEval(ctx: *mut JSContext) -> ::core::ffi::c_int;
378}
379unsafe extern "C" {
380    pub fn JS_AddIntrinsicRegExpCompiler(ctx: *mut JSContext);
381}
382unsafe extern "C" {
383    pub fn JS_AddIntrinsicRegExp(ctx: *mut JSContext) -> ::core::ffi::c_int;
384}
385unsafe extern "C" {
386    pub fn JS_AddIntrinsicJSON(ctx: *mut JSContext) -> ::core::ffi::c_int;
387}
388unsafe extern "C" {
389    pub fn JS_AddIntrinsicProxy(ctx: *mut JSContext) -> ::core::ffi::c_int;
390}
391unsafe extern "C" {
392    pub fn JS_AddIntrinsicMapSet(ctx: *mut JSContext) -> ::core::ffi::c_int;
393}
394unsafe extern "C" {
395    pub fn JS_AddIntrinsicTypedArrays(ctx: *mut JSContext) -> ::core::ffi::c_int;
396}
397unsafe extern "C" {
398    pub fn JS_AddIntrinsicPromise(ctx: *mut JSContext) -> ::core::ffi::c_int;
399}
400unsafe extern "C" {
401    pub fn JS_AddIntrinsicBigInt(ctx: *mut JSContext) -> ::core::ffi::c_int;
402}
403unsafe extern "C" {
404    pub fn JS_AddIntrinsicWeakRef(ctx: *mut JSContext) -> ::core::ffi::c_int;
405}
406unsafe extern "C" {
407    pub fn JS_AddPerformance(ctx: *mut JSContext) -> ::core::ffi::c_int;
408}
409unsafe extern "C" {
410    pub fn JS_AddIntrinsicDOMException(ctx: *mut JSContext) -> ::core::ffi::c_int;
411}
412unsafe extern "C" {
413    pub fn JS_AddIntrinsicAToB(ctx: *mut JSContext) -> ::core::ffi::c_int;
414}
415unsafe extern "C" {
416    pub fn JS_IsEqual(ctx: *mut JSContext, op1: JSValue, op2: JSValue) -> ::core::ffi::c_int;
417}
418unsafe extern "C" {
419    pub fn JS_IsStrictEqual(ctx: *mut JSContext, op1: JSValue, op2: JSValue) -> bool;
420}
421unsafe extern "C" {
422    pub fn JS_IsSameValue(ctx: *mut JSContext, op1: JSValue, op2: JSValue) -> bool;
423}
424unsafe extern "C" {
425    pub fn JS_IsSameValueZero(ctx: *mut JSContext, op1: JSValue, op2: JSValue) -> bool;
426}
427unsafe extern "C" {
428    pub fn js_string_codePointRange(
429        ctx: *mut JSContext,
430        this_val: JSValue,
431        argc: ::core::ffi::c_int,
432        argv: *mut JSValue,
433    ) -> JSValue;
434}
435unsafe extern "C" {
436    pub fn js_calloc_rt(
437        rt: *mut JSRuntime,
438        count: size_t,
439        size: size_t,
440    ) -> *mut ::core::ffi::c_void;
441}
442unsafe extern "C" {
443    pub fn js_malloc_rt(rt: *mut JSRuntime, size: size_t) -> *mut ::core::ffi::c_void;
444}
445unsafe extern "C" {
446    pub fn js_free_rt(rt: *mut JSRuntime, ptr: *mut ::core::ffi::c_void);
447}
448unsafe extern "C" {
449    pub fn js_realloc_rt(
450        rt: *mut JSRuntime,
451        ptr: *mut ::core::ffi::c_void,
452        size: size_t,
453    ) -> *mut ::core::ffi::c_void;
454}
455unsafe extern "C" {
456    pub fn js_malloc_usable_size_rt(rt: *mut JSRuntime, ptr: *const ::core::ffi::c_void) -> size_t;
457}
458unsafe extern "C" {
459    pub fn js_mallocz_rt(rt: *mut JSRuntime, size: size_t) -> *mut ::core::ffi::c_void;
460}
461unsafe extern "C" {
462    pub fn js_calloc(ctx: *mut JSContext, count: size_t, size: size_t) -> *mut ::core::ffi::c_void;
463}
464unsafe extern "C" {
465    pub fn js_malloc(ctx: *mut JSContext, size: size_t) -> *mut ::core::ffi::c_void;
466}
467unsafe extern "C" {
468    pub fn js_free(ctx: *mut JSContext, ptr: *mut ::core::ffi::c_void);
469}
470unsafe extern "C" {
471    pub fn js_realloc(
472        ctx: *mut JSContext,
473        ptr: *mut ::core::ffi::c_void,
474        size: size_t,
475    ) -> *mut ::core::ffi::c_void;
476}
477unsafe extern "C" {
478    pub fn js_malloc_usable_size(ctx: *mut JSContext, ptr: *const ::core::ffi::c_void) -> size_t;
479}
480unsafe extern "C" {
481    pub fn js_mallocz(ctx: *mut JSContext, size: size_t) -> *mut ::core::ffi::c_void;
482}
483unsafe extern "C" {
484    pub fn js_strdup(
485        ctx: *mut JSContext,
486        str_: *const ::core::ffi::c_char,
487    ) -> *mut ::core::ffi::c_char;
488}
489unsafe extern "C" {
490    pub fn js_strndup(
491        ctx: *mut JSContext,
492        s: *const ::core::ffi::c_char,
493        n: size_t,
494    ) -> *mut ::core::ffi::c_char;
495}
496#[repr(C)]
497#[derive(Debug, Copy, Clone)]
498pub struct JSMemoryUsage {
499    pub malloc_size: i64,
500    pub malloc_limit: i64,
501    pub memory_used_size: i64,
502    pub malloc_count: i64,
503    pub memory_used_count: i64,
504    pub atom_count: i64,
505    pub atom_size: i64,
506    pub str_count: i64,
507    pub str_size: i64,
508    pub obj_count: i64,
509    pub obj_size: i64,
510    pub prop_count: i64,
511    pub prop_size: i64,
512    pub shape_count: i64,
513    pub shape_size: i64,
514    pub js_func_count: i64,
515    pub js_func_size: i64,
516    pub js_func_code_size: i64,
517    pub js_func_pc2line_count: i64,
518    pub js_func_pc2line_size: i64,
519    pub c_func_count: i64,
520    pub array_count: i64,
521    pub fast_array_count: i64,
522    pub fast_array_elements: i64,
523    pub binary_object_count: i64,
524    pub binary_object_size: i64,
525}
526#[allow(clippy::unnecessary_operation, clippy::identity_op)]
527const _: () = {
528    ["Size of JSMemoryUsage"][::core::mem::size_of::<JSMemoryUsage>() - 208usize];
529    ["Alignment of JSMemoryUsage"][::core::mem::align_of::<JSMemoryUsage>() - 8usize];
530    ["Offset of field: JSMemoryUsage::malloc_size"]
531        [::core::mem::offset_of!(JSMemoryUsage, malloc_size) - 0usize];
532    ["Offset of field: JSMemoryUsage::malloc_limit"]
533        [::core::mem::offset_of!(JSMemoryUsage, malloc_limit) - 8usize];
534    ["Offset of field: JSMemoryUsage::memory_used_size"]
535        [::core::mem::offset_of!(JSMemoryUsage, memory_used_size) - 16usize];
536    ["Offset of field: JSMemoryUsage::malloc_count"]
537        [::core::mem::offset_of!(JSMemoryUsage, malloc_count) - 24usize];
538    ["Offset of field: JSMemoryUsage::memory_used_count"]
539        [::core::mem::offset_of!(JSMemoryUsage, memory_used_count) - 32usize];
540    ["Offset of field: JSMemoryUsage::atom_count"]
541        [::core::mem::offset_of!(JSMemoryUsage, atom_count) - 40usize];
542    ["Offset of field: JSMemoryUsage::atom_size"]
543        [::core::mem::offset_of!(JSMemoryUsage, atom_size) - 48usize];
544    ["Offset of field: JSMemoryUsage::str_count"]
545        [::core::mem::offset_of!(JSMemoryUsage, str_count) - 56usize];
546    ["Offset of field: JSMemoryUsage::str_size"]
547        [::core::mem::offset_of!(JSMemoryUsage, str_size) - 64usize];
548    ["Offset of field: JSMemoryUsage::obj_count"]
549        [::core::mem::offset_of!(JSMemoryUsage, obj_count) - 72usize];
550    ["Offset of field: JSMemoryUsage::obj_size"]
551        [::core::mem::offset_of!(JSMemoryUsage, obj_size) - 80usize];
552    ["Offset of field: JSMemoryUsage::prop_count"]
553        [::core::mem::offset_of!(JSMemoryUsage, prop_count) - 88usize];
554    ["Offset of field: JSMemoryUsage::prop_size"]
555        [::core::mem::offset_of!(JSMemoryUsage, prop_size) - 96usize];
556    ["Offset of field: JSMemoryUsage::shape_count"]
557        [::core::mem::offset_of!(JSMemoryUsage, shape_count) - 104usize];
558    ["Offset of field: JSMemoryUsage::shape_size"]
559        [::core::mem::offset_of!(JSMemoryUsage, shape_size) - 112usize];
560    ["Offset of field: JSMemoryUsage::js_func_count"]
561        [::core::mem::offset_of!(JSMemoryUsage, js_func_count) - 120usize];
562    ["Offset of field: JSMemoryUsage::js_func_size"]
563        [::core::mem::offset_of!(JSMemoryUsage, js_func_size) - 128usize];
564    ["Offset of field: JSMemoryUsage::js_func_code_size"]
565        [::core::mem::offset_of!(JSMemoryUsage, js_func_code_size) - 136usize];
566    ["Offset of field: JSMemoryUsage::js_func_pc2line_count"]
567        [::core::mem::offset_of!(JSMemoryUsage, js_func_pc2line_count) - 144usize];
568    ["Offset of field: JSMemoryUsage::js_func_pc2line_size"]
569        [::core::mem::offset_of!(JSMemoryUsage, js_func_pc2line_size) - 152usize];
570    ["Offset of field: JSMemoryUsage::c_func_count"]
571        [::core::mem::offset_of!(JSMemoryUsage, c_func_count) - 160usize];
572    ["Offset of field: JSMemoryUsage::array_count"]
573        [::core::mem::offset_of!(JSMemoryUsage, array_count) - 168usize];
574    ["Offset of field: JSMemoryUsage::fast_array_count"]
575        [::core::mem::offset_of!(JSMemoryUsage, fast_array_count) - 176usize];
576    ["Offset of field: JSMemoryUsage::fast_array_elements"]
577        [::core::mem::offset_of!(JSMemoryUsage, fast_array_elements) - 184usize];
578    ["Offset of field: JSMemoryUsage::binary_object_count"]
579        [::core::mem::offset_of!(JSMemoryUsage, binary_object_count) - 192usize];
580    ["Offset of field: JSMemoryUsage::binary_object_size"]
581        [::core::mem::offset_of!(JSMemoryUsage, binary_object_size) - 200usize];
582};
583unsafe extern "C" {
584    pub fn JS_ComputeMemoryUsage(rt: *mut JSRuntime, s: *mut JSMemoryUsage);
585}
586unsafe extern "C" {
587    pub fn JS_NewAtomLen(
588        ctx: *mut JSContext,
589        str_: *const ::core::ffi::c_char,
590        len: size_t,
591    ) -> JSAtom;
592}
593unsafe extern "C" {
594    pub fn JS_NewAtom(ctx: *mut JSContext, str_: *const ::core::ffi::c_char) -> JSAtom;
595}
596unsafe extern "C" {
597    pub fn JS_NewAtomUInt32(ctx: *mut JSContext, n: u32) -> JSAtom;
598}
599unsafe extern "C" {
600    pub fn JS_DupAtom(ctx: *mut JSContext, v: JSAtom) -> JSAtom;
601}
602unsafe extern "C" {
603    pub fn JS_DupAtomRT(rt: *mut JSRuntime, v: JSAtom) -> JSAtom;
604}
605unsafe extern "C" {
606    pub fn JS_FreeAtom(ctx: *mut JSContext, v: JSAtom);
607}
608unsafe extern "C" {
609    pub fn JS_FreeAtomRT(rt: *mut JSRuntime, v: JSAtom);
610}
611unsafe extern "C" {
612    pub fn JS_AtomToValue(ctx: *mut JSContext, atom: JSAtom) -> JSValue;
613}
614unsafe extern "C" {
615    pub fn JS_AtomToString(ctx: *mut JSContext, atom: JSAtom) -> JSValue;
616}
617unsafe extern "C" {
618    pub fn JS_AtomToCStringLen(
619        ctx: *mut JSContext,
620        plen: *mut size_t,
621        atom: JSAtom,
622    ) -> *const ::core::ffi::c_char;
623}
624unsafe extern "C" {
625    pub fn JS_ValueToAtom(ctx: *mut JSContext, val: JSValue) -> JSAtom;
626}
627#[repr(C)]
628#[derive(Debug, Copy, Clone)]
629pub struct JSPropertyEnum {
630    pub is_enumerable: bool,
631    pub atom: JSAtom,
632}
633#[allow(clippy::unnecessary_operation, clippy::identity_op)]
634const _: () = {
635    ["Size of JSPropertyEnum"][::core::mem::size_of::<JSPropertyEnum>() - 8usize];
636    ["Alignment of JSPropertyEnum"][::core::mem::align_of::<JSPropertyEnum>() - 4usize];
637    ["Offset of field: JSPropertyEnum::is_enumerable"]
638        [::core::mem::offset_of!(JSPropertyEnum, is_enumerable) - 0usize];
639    ["Offset of field: JSPropertyEnum::atom"]
640        [::core::mem::offset_of!(JSPropertyEnum, atom) - 4usize];
641};
642#[repr(C)]
643#[derive(Copy, Clone)]
644pub struct JSPropertyDescriptor {
645    pub flags: ::core::ffi::c_int,
646    pub value: JSValue,
647    pub getter: JSValue,
648    pub setter: JSValue,
649}
650#[allow(clippy::unnecessary_operation, clippy::identity_op)]
651const _: () = {
652    ["Size of JSPropertyDescriptor"][::core::mem::size_of::<JSPropertyDescriptor>() - 56usize];
653    ["Alignment of JSPropertyDescriptor"][::core::mem::align_of::<JSPropertyDescriptor>() - 8usize];
654    ["Offset of field: JSPropertyDescriptor::flags"]
655        [::core::mem::offset_of!(JSPropertyDescriptor, flags) - 0usize];
656    ["Offset of field: JSPropertyDescriptor::value"]
657        [::core::mem::offset_of!(JSPropertyDescriptor, value) - 8usize];
658    ["Offset of field: JSPropertyDescriptor::getter"]
659        [::core::mem::offset_of!(JSPropertyDescriptor, getter) - 24usize];
660    ["Offset of field: JSPropertyDescriptor::setter"]
661        [::core::mem::offset_of!(JSPropertyDescriptor, setter) - 40usize];
662};
663#[repr(C)]
664#[derive(Debug, Copy, Clone)]
665pub struct JSClassExoticMethods {
666    pub get_own_property: ::core::option::Option<
667        unsafe extern "C" fn(
668            ctx: *mut JSContext,
669            desc: *mut JSPropertyDescriptor,
670            obj: JSValue,
671            prop: JSAtom,
672        ) -> ::core::ffi::c_int,
673    >,
674    pub get_own_property_names: ::core::option::Option<
675        unsafe extern "C" fn(
676            ctx: *mut JSContext,
677            ptab: *mut *mut JSPropertyEnum,
678            plen: *mut u32,
679            obj: JSValue,
680        ) -> ::core::ffi::c_int,
681    >,
682    pub delete_property: ::core::option::Option<
683        unsafe extern "C" fn(ctx: *mut JSContext, obj: JSValue, prop: JSAtom) -> ::core::ffi::c_int,
684    >,
685    pub define_own_property: ::core::option::Option<
686        unsafe extern "C" fn(
687            ctx: *mut JSContext,
688            this_obj: JSValue,
689            prop: JSAtom,
690            val: JSValue,
691            getter: JSValue,
692            setter: JSValue,
693            flags: ::core::ffi::c_int,
694        ) -> ::core::ffi::c_int,
695    >,
696    pub has_property: ::core::option::Option<
697        unsafe extern "C" fn(ctx: *mut JSContext, obj: JSValue, atom: JSAtom) -> ::core::ffi::c_int,
698    >,
699    pub get_property: ::core::option::Option<
700        unsafe extern "C" fn(
701            ctx: *mut JSContext,
702            obj: JSValue,
703            atom: JSAtom,
704            receiver: JSValue,
705        ) -> JSValue,
706    >,
707    pub set_property: ::core::option::Option<
708        unsafe extern "C" fn(
709            ctx: *mut JSContext,
710            obj: JSValue,
711            atom: JSAtom,
712            value: JSValue,
713            receiver: JSValue,
714            flags: ::core::ffi::c_int,
715        ) -> ::core::ffi::c_int,
716    >,
717}
718#[allow(clippy::unnecessary_operation, clippy::identity_op)]
719const _: () = {
720    ["Size of JSClassExoticMethods"][::core::mem::size_of::<JSClassExoticMethods>() - 56usize];
721    ["Alignment of JSClassExoticMethods"][::core::mem::align_of::<JSClassExoticMethods>() - 8usize];
722    ["Offset of field: JSClassExoticMethods::get_own_property"]
723        [::core::mem::offset_of!(JSClassExoticMethods, get_own_property) - 0usize];
724    ["Offset of field: JSClassExoticMethods::get_own_property_names"]
725        [::core::mem::offset_of!(JSClassExoticMethods, get_own_property_names) - 8usize];
726    ["Offset of field: JSClassExoticMethods::delete_property"]
727        [::core::mem::offset_of!(JSClassExoticMethods, delete_property) - 16usize];
728    ["Offset of field: JSClassExoticMethods::define_own_property"]
729        [::core::mem::offset_of!(JSClassExoticMethods, define_own_property) - 24usize];
730    ["Offset of field: JSClassExoticMethods::has_property"]
731        [::core::mem::offset_of!(JSClassExoticMethods, has_property) - 32usize];
732    ["Offset of field: JSClassExoticMethods::get_property"]
733        [::core::mem::offset_of!(JSClassExoticMethods, get_property) - 40usize];
734    ["Offset of field: JSClassExoticMethods::set_property"]
735        [::core::mem::offset_of!(JSClassExoticMethods, set_property) - 48usize];
736};
737pub type JSClassFinalizer =
738    ::core::option::Option<unsafe extern "C" fn(rt: *mut JSRuntime, val: JSValue)>;
739pub type JSClassGCMark = ::core::option::Option<
740    unsafe extern "C" fn(rt: *mut JSRuntime, val: JSValue, mark_func: JS_MarkFunc),
741>;
742pub type JSClassCall = ::core::option::Option<
743    unsafe extern "C" fn(
744        ctx: *mut JSContext,
745        func_obj: JSValue,
746        this_val: JSValue,
747        argc: ::core::ffi::c_int,
748        argv: *mut JSValue,
749        flags: ::core::ffi::c_int,
750    ) -> JSValue,
751>;
752#[repr(C)]
753#[derive(Debug, Copy, Clone)]
754pub struct JSClassDef {
755    pub class_name: *const ::core::ffi::c_char,
756    pub finalizer: JSClassFinalizer,
757    pub gc_mark: JSClassGCMark,
758    pub call: JSClassCall,
759    pub exotic: *mut JSClassExoticMethods,
760}
761#[allow(clippy::unnecessary_operation, clippy::identity_op)]
762const _: () = {
763    ["Size of JSClassDef"][::core::mem::size_of::<JSClassDef>() - 40usize];
764    ["Alignment of JSClassDef"][::core::mem::align_of::<JSClassDef>() - 8usize];
765    ["Offset of field: JSClassDef::class_name"]
766        [::core::mem::offset_of!(JSClassDef, class_name) - 0usize];
767    ["Offset of field: JSClassDef::finalizer"]
768        [::core::mem::offset_of!(JSClassDef, finalizer) - 8usize];
769    ["Offset of field: JSClassDef::gc_mark"]
770        [::core::mem::offset_of!(JSClassDef, gc_mark) - 16usize];
771    ["Offset of field: JSClassDef::call"][::core::mem::offset_of!(JSClassDef, call) - 24usize];
772    ["Offset of field: JSClassDef::exotic"][::core::mem::offset_of!(JSClassDef, exotic) - 32usize];
773};
774#[repr(C)]
775#[derive(Debug, Copy, Clone)]
776pub struct JSEvalOptions {
777    pub version: ::core::ffi::c_int,
778    pub eval_flags: ::core::ffi::c_int,
779    pub filename: *const ::core::ffi::c_char,
780    pub line_num: ::core::ffi::c_int,
781}
782#[allow(clippy::unnecessary_operation, clippy::identity_op)]
783const _: () = {
784    ["Size of JSEvalOptions"][::core::mem::size_of::<JSEvalOptions>() - 24usize];
785    ["Alignment of JSEvalOptions"][::core::mem::align_of::<JSEvalOptions>() - 8usize];
786    ["Offset of field: JSEvalOptions::version"]
787        [::core::mem::offset_of!(JSEvalOptions, version) - 0usize];
788    ["Offset of field: JSEvalOptions::eval_flags"]
789        [::core::mem::offset_of!(JSEvalOptions, eval_flags) - 4usize];
790    ["Offset of field: JSEvalOptions::filename"]
791        [::core::mem::offset_of!(JSEvalOptions, filename) - 8usize];
792    ["Offset of field: JSEvalOptions::line_num"]
793        [::core::mem::offset_of!(JSEvalOptions, line_num) - 16usize];
794};
795unsafe extern "C" {
796    pub fn JS_NewClassID(rt: *mut JSRuntime, pclass_id: *mut JSClassID) -> JSClassID;
797}
798unsafe extern "C" {
799    pub fn JS_GetClassID(v: JSValue) -> JSClassID;
800}
801unsafe extern "C" {
802    pub fn JS_NewClass(
803        rt: *mut JSRuntime,
804        class_id: JSClassID,
805        class_def: *const JSClassDef,
806    ) -> ::core::ffi::c_int;
807}
808unsafe extern "C" {
809    pub fn JS_IsRegisteredClass(rt: *mut JSRuntime, class_id: JSClassID) -> bool;
810}
811unsafe extern "C" {
812    pub fn JS_GetClassName(rt: *mut JSRuntime, class_id: JSClassID) -> JSAtom;
813}
814unsafe extern "C" {
815    pub fn JS_NewNumber(ctx: *mut JSContext, d: f64) -> JSValue;
816}
817unsafe extern "C" {
818    pub fn JS_NewBigInt64(ctx: *mut JSContext, v: i64) -> JSValue;
819}
820unsafe extern "C" {
821    pub fn JS_NewBigUint64(ctx: *mut JSContext, v: u64) -> JSValue;
822}
823unsafe extern "C" {
824    pub fn JS_Throw(ctx: *mut JSContext, obj: JSValue) -> JSValue;
825}
826unsafe extern "C" {
827    pub fn JS_GetException(ctx: *mut JSContext) -> JSValue;
828}
829unsafe extern "C" {
830    pub fn JS_HasException(ctx: *mut JSContext) -> bool;
831}
832unsafe extern "C" {
833    pub fn JS_IsError(val: JSValue) -> bool;
834}
835unsafe extern "C" {
836    pub fn JS_IsUncatchableError(val: JSValue) -> bool;
837}
838unsafe extern "C" {
839    pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue);
840}
841unsafe extern "C" {
842    pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue);
843}
844unsafe extern "C" {
845    pub fn JS_ResetUncatchableError(ctx: *mut JSContext);
846}
847unsafe extern "C" {
848    pub fn JS_NewError(ctx: *mut JSContext) -> JSValue;
849}
850unsafe extern "C" {
851    pub fn JS_NewInternalError(
852        ctx: *mut JSContext,
853        fmt: *const ::core::ffi::c_char,
854        ...
855    ) -> JSValue;
856}
857unsafe extern "C" {
858    pub fn JS_NewPlainError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...) -> JSValue;
859}
860unsafe extern "C" {
861    pub fn JS_NewRangeError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...) -> JSValue;
862}
863unsafe extern "C" {
864    pub fn JS_NewReferenceError(
865        ctx: *mut JSContext,
866        fmt: *const ::core::ffi::c_char,
867        ...
868    ) -> JSValue;
869}
870unsafe extern "C" {
871    pub fn JS_NewSyntaxError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...) -> JSValue;
872}
873unsafe extern "C" {
874    pub fn JS_NewTypeError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...) -> JSValue;
875}
876unsafe extern "C" {
877    pub fn JS_ThrowInternalError(
878        ctx: *mut JSContext,
879        fmt: *const ::core::ffi::c_char,
880        ...
881    ) -> JSValue;
882}
883unsafe extern "C" {
884    pub fn JS_ThrowPlainError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...)
885    -> JSValue;
886}
887unsafe extern "C" {
888    pub fn JS_ThrowRangeError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...)
889    -> JSValue;
890}
891unsafe extern "C" {
892    pub fn JS_ThrowReferenceError(
893        ctx: *mut JSContext,
894        fmt: *const ::core::ffi::c_char,
895        ...
896    ) -> JSValue;
897}
898unsafe extern "C" {
899    pub fn JS_ThrowSyntaxError(
900        ctx: *mut JSContext,
901        fmt: *const ::core::ffi::c_char,
902        ...
903    ) -> JSValue;
904}
905unsafe extern "C" {
906    pub fn JS_ThrowTypeError(ctx: *mut JSContext, fmt: *const ::core::ffi::c_char, ...) -> JSValue;
907}
908unsafe extern "C" {
909    pub fn JS_ThrowDOMException(
910        ctx: *mut JSContext,
911        name: *const ::core::ffi::c_char,
912        fmt: *const ::core::ffi::c_char,
913        ...
914    ) -> JSValue;
915}
916unsafe extern "C" {
917    pub fn JS_ThrowOutOfMemory(ctx: *mut JSContext) -> JSValue;
918}
919unsafe extern "C" {
920    pub fn JS_FreeValue(ctx: *mut JSContext, v: JSValue);
921}
922unsafe extern "C" {
923    pub fn JS_FreeValueRT(rt: *mut JSRuntime, v: JSValue);
924}
925unsafe extern "C" {
926    pub fn JS_DupValue(ctx: *mut JSContext, v: JSValue) -> JSValue;
927}
928unsafe extern "C" {
929    pub fn JS_DupValueRT(rt: *mut JSRuntime, v: JSValue) -> JSValue;
930}
931unsafe extern "C" {
932    pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::core::ffi::c_int;
933}
934unsafe extern "C" {
935    pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue;
936}
937unsafe extern "C" {
938    pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::core::ffi::c_int;
939}
940unsafe extern "C" {
941    pub fn JS_ToInt64(ctx: *mut JSContext, pres: *mut i64, val: JSValue) -> ::core::ffi::c_int;
942}
943unsafe extern "C" {
944    pub fn JS_ToIndex(ctx: *mut JSContext, plen: *mut u64, val: JSValue) -> ::core::ffi::c_int;
945}
946unsafe extern "C" {
947    pub fn JS_ToFloat64(ctx: *mut JSContext, pres: *mut f64, val: JSValue) -> ::core::ffi::c_int;
948}
949unsafe extern "C" {
950    pub fn JS_ToBigInt64(ctx: *mut JSContext, pres: *mut i64, val: JSValue) -> ::core::ffi::c_int;
951}
952unsafe extern "C" {
953    pub fn JS_ToBigUint64(ctx: *mut JSContext, pres: *mut u64, val: JSValue) -> ::core::ffi::c_int;
954}
955unsafe extern "C" {
956    pub fn JS_ToInt64Ext(ctx: *mut JSContext, pres: *mut i64, val: JSValue) -> ::core::ffi::c_int;
957}
958unsafe extern "C" {
959    pub fn JS_NewStringLen(
960        ctx: *mut JSContext,
961        str1: *const ::core::ffi::c_char,
962        len1: size_t,
963    ) -> JSValue;
964}
965unsafe extern "C" {
966    pub fn JS_NewStringUTF16(ctx: *mut JSContext, buf: *const u16, len: size_t) -> JSValue;
967}
968unsafe extern "C" {
969    pub fn JS_NewAtomString(ctx: *mut JSContext, str_: *const ::core::ffi::c_char) -> JSValue;
970}
971unsafe extern "C" {
972    pub fn JS_ToString(ctx: *mut JSContext, val: JSValue) -> JSValue;
973}
974unsafe extern "C" {
975    pub fn JS_ToPropertyKey(ctx: *mut JSContext, val: JSValue) -> JSValue;
976}
977unsafe extern "C" {
978    pub fn JS_ToCStringLen2(
979        ctx: *mut JSContext,
980        plen: *mut size_t,
981        val1: JSValue,
982        cesu8: bool,
983    ) -> *const ::core::ffi::c_char;
984}
985unsafe extern "C" {
986    pub fn JS_ToCStringLenUTF16(
987        ctx: *mut JSContext,
988        plen: *mut size_t,
989        val1: JSValue,
990    ) -> *const u16;
991}
992unsafe extern "C" {
993    pub fn JS_FreeCString(ctx: *mut JSContext, ptr: *const ::core::ffi::c_char);
994}
995unsafe extern "C" {
996    pub fn JS_FreeCStringRT(rt: *mut JSRuntime, ptr: *const ::core::ffi::c_char);
997}
998unsafe extern "C" {
999    pub fn JS_FreeCStringUTF16(ctx: *mut JSContext, ptr: *const u16);
1000}
1001unsafe extern "C" {
1002    pub fn JS_FreeCStringRT_UTF16(rt: *mut JSRuntime, ptr: *const u16);
1003}
1004unsafe extern "C" {
1005    pub fn JS_NewObjectProtoClass(
1006        ctx: *mut JSContext,
1007        proto: JSValue,
1008        class_id: JSClassID,
1009    ) -> JSValue;
1010}
1011unsafe extern "C" {
1012    pub fn JS_NewObjectClass(ctx: *mut JSContext, class_id: JSClassID) -> JSValue;
1013}
1014unsafe extern "C" {
1015    pub fn JS_NewObjectProto(ctx: *mut JSContext, proto: JSValue) -> JSValue;
1016}
1017unsafe extern "C" {
1018    pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue;
1019}
1020unsafe extern "C" {
1021    pub fn JS_NewObjectFrom(
1022        ctx: *mut JSContext,
1023        count: ::core::ffi::c_int,
1024        props: *const JSAtom,
1025        values: *const JSValue,
1026    ) -> JSValue;
1027}
1028unsafe extern "C" {
1029    pub fn JS_NewObjectFromStr(
1030        ctx: *mut JSContext,
1031        count: ::core::ffi::c_int,
1032        props: *mut *const ::core::ffi::c_char,
1033        values: *const JSValue,
1034    ) -> JSValue;
1035}
1036unsafe extern "C" {
1037    pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue;
1038}
1039unsafe extern "C" {
1040    pub fn JS_ToObjectString(ctx: *mut JSContext, val: JSValue) -> JSValue;
1041}
1042unsafe extern "C" {
1043    pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> bool;
1044}
1045unsafe extern "C" {
1046    pub fn JS_IsAsyncFunction(val: JSValue) -> bool;
1047}
1048unsafe extern "C" {
1049    pub fn JS_IsConstructor(ctx: *mut JSContext, val: JSValue) -> bool;
1050}
1051unsafe extern "C" {
1052    pub fn JS_SetConstructorBit(ctx: *mut JSContext, func_obj: JSValue, val: bool) -> bool;
1053}
1054unsafe extern "C" {
1055    pub fn JS_IsRegExp(val: JSValue) -> bool;
1056}
1057unsafe extern "C" {
1058    pub fn JS_IsMap(val: JSValue) -> bool;
1059}
1060unsafe extern "C" {
1061    pub fn JS_IsSet(val: JSValue) -> bool;
1062}
1063unsafe extern "C" {
1064    pub fn JS_IsWeakRef(val: JSValue) -> bool;
1065}
1066unsafe extern "C" {
1067    pub fn JS_IsWeakSet(val: JSValue) -> bool;
1068}
1069unsafe extern "C" {
1070    pub fn JS_IsWeakMap(val: JSValue) -> bool;
1071}
1072unsafe extern "C" {
1073    pub fn JS_IsDataView(val: JSValue) -> bool;
1074}
1075unsafe extern "C" {
1076    pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue;
1077}
1078unsafe extern "C" {
1079    pub fn JS_NewArrayFrom(
1080        ctx: *mut JSContext,
1081        count: ::core::ffi::c_int,
1082        values: *const JSValue,
1083    ) -> JSValue;
1084}
1085unsafe extern "C" {
1086    pub fn JS_IsArray(val: JSValue) -> bool;
1087}
1088unsafe extern "C" {
1089    pub fn JS_IsProxy(val: JSValue) -> bool;
1090}
1091unsafe extern "C" {
1092    pub fn JS_GetProxyTarget(ctx: *mut JSContext, proxy: JSValue) -> JSValue;
1093}
1094unsafe extern "C" {
1095    pub fn JS_GetProxyHandler(ctx: *mut JSContext, proxy: JSValue) -> JSValue;
1096}
1097unsafe extern "C" {
1098    pub fn JS_NewProxy(ctx: *mut JSContext, target: JSValue, handler: JSValue) -> JSValue;
1099}
1100unsafe extern "C" {
1101    pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue;
1102}
1103unsafe extern "C" {
1104    pub fn JS_IsDate(v: JSValue) -> bool;
1105}
1106unsafe extern "C" {
1107    pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue;
1108}
1109unsafe extern "C" {
1110    pub fn JS_GetPropertyUint32(ctx: *mut JSContext, this_obj: JSValue, idx: u32) -> JSValue;
1111}
1112unsafe extern "C" {
1113    pub fn JS_GetPropertyInt64(ctx: *mut JSContext, this_obj: JSValue, idx: i64) -> JSValue;
1114}
1115unsafe extern "C" {
1116    pub fn JS_GetPropertyStr(
1117        ctx: *mut JSContext,
1118        this_obj: JSValue,
1119        prop: *const ::core::ffi::c_char,
1120    ) -> JSValue;
1121}
1122unsafe extern "C" {
1123    pub fn JS_GetPropertyValue(ctx: *mut JSContext, this_obj: JSValue, prop: JSValue) -> JSValue;
1124}
1125unsafe extern "C" {
1126    pub fn JS_SetProperty(
1127        ctx: *mut JSContext,
1128        this_obj: JSValue,
1129        prop: JSAtom,
1130        val: JSValue,
1131    ) -> ::core::ffi::c_int;
1132}
1133unsafe extern "C" {
1134    pub fn JS_SetPropertyUint32(
1135        ctx: *mut JSContext,
1136        this_obj: JSValue,
1137        idx: u32,
1138        val: JSValue,
1139    ) -> ::core::ffi::c_int;
1140}
1141unsafe extern "C" {
1142    pub fn JS_SetPropertyInt64(
1143        ctx: *mut JSContext,
1144        this_obj: JSValue,
1145        idx: i64,
1146        val: JSValue,
1147    ) -> ::core::ffi::c_int;
1148}
1149unsafe extern "C" {
1150    pub fn JS_SetPropertyStr(
1151        ctx: *mut JSContext,
1152        this_obj: JSValue,
1153        prop: *const ::core::ffi::c_char,
1154        val: JSValue,
1155    ) -> ::core::ffi::c_int;
1156}
1157unsafe extern "C" {
1158    pub fn JS_SetPropertyValue(
1159        ctx: *mut JSContext,
1160        this_obj: JSValue,
1161        prop: JSValue,
1162        val: JSValue,
1163        flags: ::core::ffi::c_int,
1164    ) -> ::core::ffi::c_int;
1165}
1166unsafe extern "C" {
1167    pub fn JS_HasProperty(
1168        ctx: *mut JSContext,
1169        this_obj: JSValue,
1170        prop: JSAtom,
1171    ) -> ::core::ffi::c_int;
1172}
1173unsafe extern "C" {
1174    pub fn JS_IsExtensible(ctx: *mut JSContext, obj: JSValue) -> ::core::ffi::c_int;
1175}
1176unsafe extern "C" {
1177    pub fn JS_PreventExtensions(ctx: *mut JSContext, obj: JSValue) -> ::core::ffi::c_int;
1178}
1179unsafe extern "C" {
1180    pub fn JS_DeleteProperty(
1181        ctx: *mut JSContext,
1182        obj: JSValue,
1183        prop: JSAtom,
1184        flags: ::core::ffi::c_int,
1185    ) -> ::core::ffi::c_int;
1186}
1187unsafe extern "C" {
1188    pub fn JS_SetPrototype(
1189        ctx: *mut JSContext,
1190        obj: JSValue,
1191        proto_val: JSValue,
1192    ) -> ::core::ffi::c_int;
1193}
1194unsafe extern "C" {
1195    pub fn JS_GetPrototype(ctx: *mut JSContext, val: JSValue) -> JSValue;
1196}
1197unsafe extern "C" {
1198    pub fn JS_GetLength(ctx: *mut JSContext, obj: JSValue, pres: *mut i64) -> ::core::ffi::c_int;
1199}
1200unsafe extern "C" {
1201    pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::core::ffi::c_int;
1202}
1203unsafe extern "C" {
1204    pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::core::ffi::c_int;
1205}
1206unsafe extern "C" {
1207    pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::core::ffi::c_int;
1208}
1209unsafe extern "C" {
1210    pub fn JS_GetOwnPropertyNames(
1211        ctx: *mut JSContext,
1212        ptab: *mut *mut JSPropertyEnum,
1213        plen: *mut u32,
1214        obj: JSValue,
1215        flags: ::core::ffi::c_int,
1216    ) -> ::core::ffi::c_int;
1217}
1218unsafe extern "C" {
1219    pub fn JS_GetOwnProperty(
1220        ctx: *mut JSContext,
1221        desc: *mut JSPropertyDescriptor,
1222        obj: JSValue,
1223        prop: JSAtom,
1224    ) -> ::core::ffi::c_int;
1225}
1226unsafe extern "C" {
1227    pub fn JS_FreePropertyEnum(ctx: *mut JSContext, tab: *mut JSPropertyEnum, len: u32);
1228}
1229unsafe extern "C" {
1230    pub fn JS_Call(
1231        ctx: *mut JSContext,
1232        func_obj: JSValue,
1233        this_obj: JSValue,
1234        argc: ::core::ffi::c_int,
1235        argv: *mut JSValue,
1236    ) -> JSValue;
1237}
1238unsafe extern "C" {
1239    pub fn JS_Invoke(
1240        ctx: *mut JSContext,
1241        this_val: JSValue,
1242        atom: JSAtom,
1243        argc: ::core::ffi::c_int,
1244        argv: *mut JSValue,
1245    ) -> JSValue;
1246}
1247unsafe extern "C" {
1248    pub fn JS_CallConstructor(
1249        ctx: *mut JSContext,
1250        func_obj: JSValue,
1251        argc: ::core::ffi::c_int,
1252        argv: *mut JSValue,
1253    ) -> JSValue;
1254}
1255unsafe extern "C" {
1256    pub fn JS_CallConstructor2(
1257        ctx: *mut JSContext,
1258        func_obj: JSValue,
1259        new_target: JSValue,
1260        argc: ::core::ffi::c_int,
1261        argv: *mut JSValue,
1262    ) -> JSValue;
1263}
1264unsafe extern "C" {
1265    pub fn JS_DetectModule(input: *const ::core::ffi::c_char, input_len: size_t) -> bool;
1266}
1267unsafe extern "C" {
1268    pub fn JS_Eval(
1269        ctx: *mut JSContext,
1270        input: *const ::core::ffi::c_char,
1271        input_len: size_t,
1272        filename: *const ::core::ffi::c_char,
1273        eval_flags: ::core::ffi::c_int,
1274    ) -> JSValue;
1275}
1276unsafe extern "C" {
1277    pub fn JS_Eval2(
1278        ctx: *mut JSContext,
1279        input: *const ::core::ffi::c_char,
1280        input_len: size_t,
1281        options: *mut JSEvalOptions,
1282    ) -> JSValue;
1283}
1284unsafe extern "C" {
1285    pub fn JS_EvalThis(
1286        ctx: *mut JSContext,
1287        this_obj: JSValue,
1288        input: *const ::core::ffi::c_char,
1289        input_len: size_t,
1290        filename: *const ::core::ffi::c_char,
1291        eval_flags: ::core::ffi::c_int,
1292    ) -> JSValue;
1293}
1294unsafe extern "C" {
1295    pub fn JS_EvalThis2(
1296        ctx: *mut JSContext,
1297        this_obj: JSValue,
1298        input: *const ::core::ffi::c_char,
1299        input_len: size_t,
1300        options: *mut JSEvalOptions,
1301    ) -> JSValue;
1302}
1303unsafe extern "C" {
1304    pub fn JS_GetGlobalObject(ctx: *mut JSContext) -> JSValue;
1305}
1306unsafe extern "C" {
1307    pub fn JS_IsInstanceOf(ctx: *mut JSContext, val: JSValue, obj: JSValue) -> ::core::ffi::c_int;
1308}
1309unsafe extern "C" {
1310    pub fn JS_DefineProperty(
1311        ctx: *mut JSContext,
1312        this_obj: JSValue,
1313        prop: JSAtom,
1314        val: JSValue,
1315        getter: JSValue,
1316        setter: JSValue,
1317        flags: ::core::ffi::c_int,
1318    ) -> ::core::ffi::c_int;
1319}
1320unsafe extern "C" {
1321    pub fn JS_DefinePropertyValue(
1322        ctx: *mut JSContext,
1323        this_obj: JSValue,
1324        prop: JSAtom,
1325        val: JSValue,
1326        flags: ::core::ffi::c_int,
1327    ) -> ::core::ffi::c_int;
1328}
1329unsafe extern "C" {
1330    pub fn JS_DefinePropertyValueUint32(
1331        ctx: *mut JSContext,
1332        this_obj: JSValue,
1333        idx: u32,
1334        val: JSValue,
1335        flags: ::core::ffi::c_int,
1336    ) -> ::core::ffi::c_int;
1337}
1338unsafe extern "C" {
1339    pub fn JS_DefinePropertyValueStr(
1340        ctx: *mut JSContext,
1341        this_obj: JSValue,
1342        prop: *const ::core::ffi::c_char,
1343        val: JSValue,
1344        flags: ::core::ffi::c_int,
1345    ) -> ::core::ffi::c_int;
1346}
1347unsafe extern "C" {
1348    pub fn JS_DefinePropertyGetSet(
1349        ctx: *mut JSContext,
1350        this_obj: JSValue,
1351        prop: JSAtom,
1352        getter: JSValue,
1353        setter: JSValue,
1354        flags: ::core::ffi::c_int,
1355    ) -> ::core::ffi::c_int;
1356}
1357unsafe extern "C" {
1358    pub fn JS_SetOpaque(obj: JSValue, opaque: *mut ::core::ffi::c_void) -> ::core::ffi::c_int;
1359}
1360unsafe extern "C" {
1361    pub fn JS_GetOpaque(obj: JSValue, class_id: JSClassID) -> *mut ::core::ffi::c_void;
1362}
1363unsafe extern "C" {
1364    pub fn JS_GetOpaque2(
1365        ctx: *mut JSContext,
1366        obj: JSValue,
1367        class_id: JSClassID,
1368    ) -> *mut ::core::ffi::c_void;
1369}
1370unsafe extern "C" {
1371    pub fn JS_GetAnyOpaque(obj: JSValue, class_id: *mut JSClassID) -> *mut ::core::ffi::c_void;
1372}
1373unsafe extern "C" {
1374    pub fn JS_ParseJSON(
1375        ctx: *mut JSContext,
1376        buf: *const ::core::ffi::c_char,
1377        buf_len: size_t,
1378        filename: *const ::core::ffi::c_char,
1379    ) -> JSValue;
1380}
1381unsafe extern "C" {
1382    pub fn JS_JSONStringify(
1383        ctx: *mut JSContext,
1384        obj: JSValue,
1385        replacer: JSValue,
1386        space0: JSValue,
1387    ) -> JSValue;
1388}
1389pub type JSReallocArrayBufferDataFunc = ::core::option::Option<
1390    unsafe extern "C" fn(
1391        rt: *mut JSRuntime,
1392        opaque: *mut ::core::ffi::c_void,
1393        ptr: *mut ::core::ffi::c_void,
1394        size: size_t,
1395    ) -> *mut ::core::ffi::c_void,
1396>;
1397unsafe extern "C" {
1398    pub fn JS_NewArrayBuffer(
1399        ctx: *mut JSContext,
1400        buf: *mut u8,
1401        len: size_t,
1402        max_len: size_t,
1403        realloc_func: JSReallocArrayBufferDataFunc,
1404        opaque: *mut ::core::ffi::c_void,
1405        is_shared: bool,
1406    ) -> JSValue;
1407}
1408unsafe extern "C" {
1409    pub fn JS_NewArrayBufferCopy(ctx: *mut JSContext, buf: *const u8, len: size_t) -> JSValue;
1410}
1411unsafe extern "C" {
1412    pub fn JS_DetachArrayBuffer(ctx: *mut JSContext, obj: JSValue);
1413}
1414unsafe extern "C" {
1415    pub fn JS_GetArrayBuffer(ctx: *mut JSContext, psize: *mut size_t, obj: JSValue) -> *mut u8;
1416}
1417unsafe extern "C" {
1418    pub fn JS_IsArrayBuffer(obj: JSValue) -> bool;
1419}
1420unsafe extern "C" {
1421    pub fn JS_IsImmutableArrayBuffer(obj: JSValue) -> ::core::ffi::c_int;
1422}
1423unsafe extern "C" {
1424    pub fn JS_SetImmutableArrayBuffer(obj: JSValue, immutable: bool) -> ::core::ffi::c_int;
1425}
1426unsafe extern "C" {
1427    pub fn JS_GetUint8Array(ctx: *mut JSContext, psize: *mut size_t, obj: JSValue) -> *mut u8;
1428}
1429pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8C: JSTypedArrayEnum = 0;
1430pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT8: JSTypedArrayEnum = 1;
1431pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8: JSTypedArrayEnum = 2;
1432pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT16: JSTypedArrayEnum = 3;
1433pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT16: JSTypedArrayEnum = 4;
1434pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT32: JSTypedArrayEnum = 5;
1435pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT32: JSTypedArrayEnum = 6;
1436pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_INT64: JSTypedArrayEnum = 7;
1437pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_UINT64: JSTypedArrayEnum = 8;
1438pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT16: JSTypedArrayEnum = 9;
1439pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT32: JSTypedArrayEnum = 10;
1440pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT64: JSTypedArrayEnum = 11;
1441pub type JSTypedArrayEnum = ::core::ffi::c_uint;
1442unsafe extern "C" {
1443    pub fn JS_NewTypedArray(
1444        ctx: *mut JSContext,
1445        argc: ::core::ffi::c_int,
1446        argv: *mut JSValue,
1447        array_type: JSTypedArrayEnum,
1448    ) -> JSValue;
1449}
1450unsafe extern "C" {
1451    pub fn JS_GetTypedArrayBuffer(
1452        ctx: *mut JSContext,
1453        obj: JSValue,
1454        pbyte_offset: *mut size_t,
1455        pbyte_length: *mut size_t,
1456        pbytes_per_element: *mut size_t,
1457    ) -> JSValue;
1458}
1459unsafe extern "C" {
1460    pub fn JS_NewUint8Array(
1461        ctx: *mut JSContext,
1462        buf: *mut u8,
1463        len: size_t,
1464        realloc_func: JSReallocArrayBufferDataFunc,
1465        opaque: *mut ::core::ffi::c_void,
1466        is_shared: bool,
1467    ) -> JSValue;
1468}
1469unsafe extern "C" {
1470    pub fn JS_GetTypedArrayType(obj: JSValue) -> ::core::ffi::c_int;
1471}
1472unsafe extern "C" {
1473    pub fn JS_NewUint8ArrayCopy(ctx: *mut JSContext, buf: *const u8, len: size_t) -> JSValue;
1474}
1475#[repr(C)]
1476#[derive(Debug, Copy, Clone)]
1477pub struct JSSharedArrayBufferFunctions {
1478    pub sab_alloc: ::core::option::Option<
1479        unsafe extern "C" fn(
1480            opaque: *mut ::core::ffi::c_void,
1481            size: size_t,
1482        ) -> *mut ::core::ffi::c_void,
1483    >,
1484    pub sab_free: ::core::option::Option<
1485        unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void, ptr: *mut ::core::ffi::c_void),
1486    >,
1487    pub sab_dup: ::core::option::Option<
1488        unsafe extern "C" fn(opaque: *mut ::core::ffi::c_void, ptr: *mut ::core::ffi::c_void),
1489    >,
1490    pub sab_opaque: *mut ::core::ffi::c_void,
1491}
1492#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1493const _: () = {
1494    ["Size of JSSharedArrayBufferFunctions"]
1495        [::core::mem::size_of::<JSSharedArrayBufferFunctions>() - 32usize];
1496    ["Alignment of JSSharedArrayBufferFunctions"]
1497        [::core::mem::align_of::<JSSharedArrayBufferFunctions>() - 8usize];
1498    ["Offset of field: JSSharedArrayBufferFunctions::sab_alloc"]
1499        [::core::mem::offset_of!(JSSharedArrayBufferFunctions, sab_alloc) - 0usize];
1500    ["Offset of field: JSSharedArrayBufferFunctions::sab_free"]
1501        [::core::mem::offset_of!(JSSharedArrayBufferFunctions, sab_free) - 8usize];
1502    ["Offset of field: JSSharedArrayBufferFunctions::sab_dup"]
1503        [::core::mem::offset_of!(JSSharedArrayBufferFunctions, sab_dup) - 16usize];
1504    ["Offset of field: JSSharedArrayBufferFunctions::sab_opaque"]
1505        [::core::mem::offset_of!(JSSharedArrayBufferFunctions, sab_opaque) - 24usize];
1506};
1507unsafe extern "C" {
1508    pub fn JS_SetSharedArrayBufferFunctions(
1509        rt: *mut JSRuntime,
1510        sf: *const JSSharedArrayBufferFunctions,
1511    );
1512}
1513pub const JSPromiseStateEnum_JS_PROMISE_NOT_A_PROMISE: JSPromiseStateEnum = -1;
1514pub const JSPromiseStateEnum_JS_PROMISE_PENDING: JSPromiseStateEnum = 0;
1515pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED: JSPromiseStateEnum = 1;
1516pub const JSPromiseStateEnum_JS_PROMISE_REJECTED: JSPromiseStateEnum = 2;
1517pub type JSPromiseStateEnum = ::core::ffi::c_int;
1518unsafe extern "C" {
1519    pub fn JS_NewPromiseCapability(ctx: *mut JSContext, resolving_funcs: *mut JSValue) -> JSValue;
1520}
1521unsafe extern "C" {
1522    pub fn JS_PromiseThen(
1523        ctx: *mut JSContext,
1524        promise: JSValue,
1525        on_fulfilled: JSValue,
1526        on_rejected: JSValue,
1527    ) -> JSValue;
1528}
1529unsafe extern "C" {
1530    pub fn JS_PromiseState(ctx: *mut JSContext, promise: JSValue) -> JSPromiseStateEnum;
1531}
1532unsafe extern "C" {
1533    pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue;
1534}
1535unsafe extern "C" {
1536    pub fn JS_IsPromise(val: JSValue) -> bool;
1537}
1538unsafe extern "C" {
1539    pub fn JS_PromiseMarkAsHandled(ctx: *mut JSContext, promise: JSValue);
1540}
1541unsafe extern "C" {
1542    pub fn JS_NewSettledPromise(ctx: *mut JSContext, is_reject: bool, value: JSValue) -> JSValue;
1543}
1544unsafe extern "C" {
1545    pub fn JS_NewSymbol(
1546        ctx: *mut JSContext,
1547        description: *const ::core::ffi::c_char,
1548        is_global: bool,
1549    ) -> JSValue;
1550}
1551unsafe extern "C" {
1552    pub fn JS_NewPrivateSymbol(
1553        ctx: *mut JSContext,
1554        description: *const ::core::ffi::c_char,
1555    ) -> JSValue;
1556}
1557pub const JSPromiseHookType_JS_PROMISE_HOOK_INIT: JSPromiseHookType = 0;
1558pub const JSPromiseHookType_JS_PROMISE_HOOK_BEFORE: JSPromiseHookType = 1;
1559pub const JSPromiseHookType_JS_PROMISE_HOOK_AFTER: JSPromiseHookType = 2;
1560pub const JSPromiseHookType_JS_PROMISE_HOOK_RESOLVE: JSPromiseHookType = 3;
1561pub type JSPromiseHookType = ::core::ffi::c_uint;
1562pub type JSPromiseHook = ::core::option::Option<
1563    unsafe extern "C" fn(
1564        ctx: *mut JSContext,
1565        type_: JSPromiseHookType,
1566        promise: JSValue,
1567        parent_promise: JSValue,
1568        opaque: *mut ::core::ffi::c_void,
1569    ),
1570>;
1571unsafe extern "C" {
1572    pub fn JS_SetPromiseHook(
1573        rt: *mut JSRuntime,
1574        promise_hook: JSPromiseHook,
1575        opaque: *mut ::core::ffi::c_void,
1576    );
1577}
1578pub type JSHostPromiseRejectionTracker = ::core::option::Option<
1579    unsafe extern "C" fn(
1580        ctx: *mut JSContext,
1581        promise: JSValue,
1582        reason: JSValue,
1583        is_handled: bool,
1584        opaque: *mut ::core::ffi::c_void,
1585    ),
1586>;
1587unsafe extern "C" {
1588    pub fn JS_SetHostPromiseRejectionTracker(
1589        rt: *mut JSRuntime,
1590        cb: JSHostPromiseRejectionTracker,
1591        opaque: *mut ::core::ffi::c_void,
1592    );
1593}
1594pub type JSInterruptHandler = ::core::option::Option<
1595    unsafe extern "C" fn(
1596        ctx: *mut JSContext,
1597        opaque: *mut ::core::ffi::c_void,
1598    ) -> ::core::ffi::c_int,
1599>;
1600unsafe extern "C" {
1601    pub fn JS_SetInterruptHandler(
1602        rt: *mut JSRuntime,
1603        cb: JSInterruptHandler,
1604        opaque: *mut ::core::ffi::c_void,
1605    );
1606}
1607unsafe extern "C" {
1608    pub fn JS_SetCanBlock(rt: *mut JSRuntime, can_block: bool);
1609}
1610unsafe extern "C" {
1611    pub fn JS_SetIsHTMLDDA(ctx: *mut JSContext, obj: JSValue);
1612}
1613#[repr(C)]
1614#[derive(Debug, Copy, Clone)]
1615pub struct JSModuleDef {
1616    _unused: [u8; 0],
1617}
1618pub type JSModuleNormalizeFunc = ::core::option::Option<
1619    unsafe extern "C" fn(
1620        ctx: *mut JSContext,
1621        module_base_name: *const ::core::ffi::c_char,
1622        module_name: *const ::core::ffi::c_char,
1623        opaque: *mut ::core::ffi::c_void,
1624    ) -> *mut ::core::ffi::c_char,
1625>;
1626pub type JSModuleNormalizeFunc2 = ::core::option::Option<
1627    unsafe extern "C" fn(
1628        ctx: *mut JSContext,
1629        module_base_name: *const ::core::ffi::c_char,
1630        module_name: *const ::core::ffi::c_char,
1631        attributes: JSValue,
1632        opaque: *mut ::core::ffi::c_void,
1633    ) -> *mut ::core::ffi::c_char,
1634>;
1635pub type JSModuleLoaderFunc = ::core::option::Option<
1636    unsafe extern "C" fn(
1637        ctx: *mut JSContext,
1638        module_name: *const ::core::ffi::c_char,
1639        opaque: *mut ::core::ffi::c_void,
1640    ) -> *mut JSModuleDef,
1641>;
1642pub type JSDynamicImportFunc = ::core::option::Option<
1643    unsafe extern "C" fn(
1644        ctx: *mut JSContext,
1645        basename: *const ::core::ffi::c_char,
1646        filename: *const ::core::ffi::c_char,
1647        token: JSValue,
1648        attributes: JSValue,
1649        opaque: *mut ::core::ffi::c_void,
1650    ),
1651>;
1652pub type JSModuleLoaderFunc2 = ::core::option::Option<
1653    unsafe extern "C" fn(
1654        ctx: *mut JSContext,
1655        module_name: *const ::core::ffi::c_char,
1656        opaque: *mut ::core::ffi::c_void,
1657        attributes: JSValue,
1658    ) -> *mut JSModuleDef,
1659>;
1660pub type JSModuleCheckSupportedImportAttributes = ::core::option::Option<
1661    unsafe extern "C" fn(
1662        ctx: *mut JSContext,
1663        opaque: *mut ::core::ffi::c_void,
1664        attributes: JSValue,
1665    ) -> ::core::ffi::c_int,
1666>;
1667unsafe extern "C" {
1668    pub fn JS_SetModuleLoaderFunc(
1669        rt: *mut JSRuntime,
1670        module_normalize: JSModuleNormalizeFunc,
1671        module_loader: JSModuleLoaderFunc,
1672        opaque: *mut ::core::ffi::c_void,
1673    );
1674}
1675unsafe extern "C" {
1676    pub fn JS_SetModuleLoaderFunc2(
1677        rt: *mut JSRuntime,
1678        module_normalize: JSModuleNormalizeFunc,
1679        module_loader: JSModuleLoaderFunc2,
1680        module_check_attrs: JSModuleCheckSupportedImportAttributes,
1681        opaque: *mut ::core::ffi::c_void,
1682    );
1683}
1684unsafe extern "C" {
1685    pub fn JS_SetDynamicImportFunc(
1686        rt: *mut JSRuntime,
1687        func: JSDynamicImportFunc,
1688        opaque: *mut ::core::ffi::c_void,
1689    );
1690}
1691unsafe extern "C" {
1692    pub fn JS_SetModuleNormalizeFunc2(rt: *mut JSRuntime, module_normalize: JSModuleNormalizeFunc2);
1693}
1694unsafe extern "C" {
1695    pub fn JS_FinishDynamicImport(
1696        ctx: *mut JSContext,
1697        token: JSValue,
1698        promise: JSValue,
1699        exception: JSValue,
1700    ) -> ::core::ffi::c_int;
1701}
1702unsafe extern "C" {
1703    pub fn JS_GetImportMeta(ctx: *mut JSContext, m: *mut JSModuleDef) -> JSValue;
1704}
1705unsafe extern "C" {
1706    pub fn JS_GetModuleName(ctx: *mut JSContext, m: *mut JSModuleDef) -> JSAtom;
1707}
1708unsafe extern "C" {
1709    pub fn JS_GetModuleNamespace(ctx: *mut JSContext, m: *mut JSModuleDef) -> JSValue;
1710}
1711unsafe extern "C" {
1712    pub fn JS_SetModulePrivateValue(
1713        ctx: *mut JSContext,
1714        m: *mut JSModuleDef,
1715        val: JSValue,
1716    ) -> ::core::ffi::c_int;
1717}
1718unsafe extern "C" {
1719    pub fn JS_GetModulePrivateValue(ctx: *mut JSContext, m: *mut JSModuleDef) -> JSValue;
1720}
1721pub type JSJobFunc = ::core::option::Option<
1722    unsafe extern "C" fn(
1723        ctx: *mut JSContext,
1724        argc: ::core::ffi::c_int,
1725        argv: *mut JSValue,
1726    ) -> JSValue,
1727>;
1728unsafe extern "C" {
1729    pub fn JS_EnqueueJob(
1730        ctx: *mut JSContext,
1731        job_func: JSJobFunc,
1732        argc: ::core::ffi::c_int,
1733        argv: *mut JSValue,
1734    ) -> ::core::ffi::c_int;
1735}
1736unsafe extern "C" {
1737    pub fn JS_IsJobPending(rt: *mut JSRuntime) -> bool;
1738}
1739unsafe extern "C" {
1740    pub fn JS_GetPendingJobContext(rt: *mut JSRuntime) -> *mut JSContext;
1741}
1742unsafe extern "C" {
1743    pub fn JS_ExecutePendingJob(
1744        rt: *mut JSRuntime,
1745        pctx: *mut *mut JSContext,
1746    ) -> ::core::ffi::c_int;
1747}
1748#[repr(C)]
1749#[derive(Debug, Copy, Clone)]
1750pub struct JSSABTab {
1751    pub tab: *mut *mut u8,
1752    pub len: size_t,
1753}
1754#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1755const _: () = {
1756    ["Size of JSSABTab"][::core::mem::size_of::<JSSABTab>() - 16usize];
1757    ["Alignment of JSSABTab"][::core::mem::align_of::<JSSABTab>() - 8usize];
1758    ["Offset of field: JSSABTab::tab"][::core::mem::offset_of!(JSSABTab, tab) - 0usize];
1759    ["Offset of field: JSSABTab::len"][::core::mem::offset_of!(JSSABTab, len) - 8usize];
1760};
1761unsafe extern "C" {
1762    pub fn JS_WriteObject(
1763        ctx: *mut JSContext,
1764        psize: *mut size_t,
1765        obj: JSValue,
1766        flags: ::core::ffi::c_int,
1767    ) -> *mut u8;
1768}
1769unsafe extern "C" {
1770    pub fn JS_WriteObject2(
1771        ctx: *mut JSContext,
1772        psize: *mut size_t,
1773        obj: JSValue,
1774        flags: ::core::ffi::c_int,
1775        psab_tab: *mut JSSABTab,
1776    ) -> *mut u8;
1777}
1778unsafe extern "C" {
1779    pub fn JS_ReadObject(
1780        ctx: *mut JSContext,
1781        buf: *const u8,
1782        buf_len: size_t,
1783        flags: ::core::ffi::c_int,
1784    ) -> JSValue;
1785}
1786unsafe extern "C" {
1787    pub fn JS_ReadObject2(
1788        ctx: *mut JSContext,
1789        buf: *const u8,
1790        buf_len: size_t,
1791        flags: ::core::ffi::c_int,
1792        psab_tab: *mut JSSABTab,
1793    ) -> JSValue;
1794}
1795unsafe extern "C" {
1796    pub fn JS_EvalFunction(ctx: *mut JSContext, fun_obj: JSValue) -> JSValue;
1797}
1798unsafe extern "C" {
1799    pub fn JS_ResolveModule(ctx: *mut JSContext, obj: JSValue) -> ::core::ffi::c_int;
1800}
1801unsafe extern "C" {
1802    pub fn JS_GetScriptOrModuleName(
1803        ctx: *mut JSContext,
1804        n_stack_levels: ::core::ffi::c_int,
1805    ) -> JSAtom;
1806}
1807unsafe extern "C" {
1808    pub fn JS_LoadModule(
1809        ctx: *mut JSContext,
1810        basename: *const ::core::ffi::c_char,
1811        filename: *const ::core::ffi::c_char,
1812        attributes: JSValue,
1813    ) -> JSValue;
1814}
1815pub const JSCFunctionEnum_JS_CFUNC_generic: JSCFunctionEnum = 0;
1816pub const JSCFunctionEnum_JS_CFUNC_generic_magic: JSCFunctionEnum = 1;
1817pub const JSCFunctionEnum_JS_CFUNC_constructor: JSCFunctionEnum = 2;
1818pub const JSCFunctionEnum_JS_CFUNC_constructor_magic: JSCFunctionEnum = 3;
1819pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func: JSCFunctionEnum = 4;
1820pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic: JSCFunctionEnum = 5;
1821pub const JSCFunctionEnum_JS_CFUNC_f_f: JSCFunctionEnum = 6;
1822pub const JSCFunctionEnum_JS_CFUNC_f_f_f: JSCFunctionEnum = 7;
1823pub const JSCFunctionEnum_JS_CFUNC_getter: JSCFunctionEnum = 8;
1824pub const JSCFunctionEnum_JS_CFUNC_setter: JSCFunctionEnum = 9;
1825pub const JSCFunctionEnum_JS_CFUNC_getter_magic: JSCFunctionEnum = 10;
1826pub const JSCFunctionEnum_JS_CFUNC_setter_magic: JSCFunctionEnum = 11;
1827pub const JSCFunctionEnum_JS_CFUNC_iterator_next: JSCFunctionEnum = 12;
1828pub type JSCFunctionEnum = ::core::ffi::c_uint;
1829#[repr(C)]
1830#[derive(Copy, Clone)]
1831pub union JSCFunctionType {
1832    pub generic: JSCFunction,
1833    pub generic_magic: ::core::option::Option<
1834        unsafe extern "C" fn(
1835            ctx: *mut JSContext,
1836            this_val: JSValue,
1837            argc: ::core::ffi::c_int,
1838            argv: *mut JSValue,
1839            magic: ::core::ffi::c_int,
1840        ) -> JSValue,
1841    >,
1842    pub constructor: JSCFunction,
1843    pub constructor_magic: ::core::option::Option<
1844        unsafe extern "C" fn(
1845            ctx: *mut JSContext,
1846            new_target: JSValue,
1847            argc: ::core::ffi::c_int,
1848            argv: *mut JSValue,
1849            magic: ::core::ffi::c_int,
1850        ) -> JSValue,
1851    >,
1852    pub constructor_or_func: JSCFunction,
1853    pub f_f: ::core::option::Option<unsafe extern "C" fn(arg1: f64) -> f64>,
1854    pub f_f_f: ::core::option::Option<unsafe extern "C" fn(arg1: f64, arg2: f64) -> f64>,
1855    pub getter: ::core::option::Option<
1856        unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue) -> JSValue,
1857    >,
1858    pub setter: ::core::option::Option<
1859        unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, val: JSValue) -> JSValue,
1860    >,
1861    pub getter_magic: ::core::option::Option<
1862        unsafe extern "C" fn(
1863            ctx: *mut JSContext,
1864            this_val: JSValue,
1865            magic: ::core::ffi::c_int,
1866        ) -> JSValue,
1867    >,
1868    pub setter_magic: ::core::option::Option<
1869        unsafe extern "C" fn(
1870            ctx: *mut JSContext,
1871            this_val: JSValue,
1872            val: JSValue,
1873            magic: ::core::ffi::c_int,
1874        ) -> JSValue,
1875    >,
1876    pub iterator_next: ::core::option::Option<
1877        unsafe extern "C" fn(
1878            ctx: *mut JSContext,
1879            this_val: JSValue,
1880            argc: ::core::ffi::c_int,
1881            argv: *mut JSValue,
1882            pdone: *mut ::core::ffi::c_int,
1883            magic: ::core::ffi::c_int,
1884        ) -> JSValue,
1885    >,
1886}
1887#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1888const _: () = {
1889    ["Size of JSCFunctionType"][::core::mem::size_of::<JSCFunctionType>() - 8usize];
1890    ["Alignment of JSCFunctionType"][::core::mem::align_of::<JSCFunctionType>() - 8usize];
1891    ["Offset of field: JSCFunctionType::generic"]
1892        [::core::mem::offset_of!(JSCFunctionType, generic) - 0usize];
1893    ["Offset of field: JSCFunctionType::generic_magic"]
1894        [::core::mem::offset_of!(JSCFunctionType, generic_magic) - 0usize];
1895    ["Offset of field: JSCFunctionType::constructor"]
1896        [::core::mem::offset_of!(JSCFunctionType, constructor) - 0usize];
1897    ["Offset of field: JSCFunctionType::constructor_magic"]
1898        [::core::mem::offset_of!(JSCFunctionType, constructor_magic) - 0usize];
1899    ["Offset of field: JSCFunctionType::constructor_or_func"]
1900        [::core::mem::offset_of!(JSCFunctionType, constructor_or_func) - 0usize];
1901    ["Offset of field: JSCFunctionType::f_f"]
1902        [::core::mem::offset_of!(JSCFunctionType, f_f) - 0usize];
1903    ["Offset of field: JSCFunctionType::f_f_f"]
1904        [::core::mem::offset_of!(JSCFunctionType, f_f_f) - 0usize];
1905    ["Offset of field: JSCFunctionType::getter"]
1906        [::core::mem::offset_of!(JSCFunctionType, getter) - 0usize];
1907    ["Offset of field: JSCFunctionType::setter"]
1908        [::core::mem::offset_of!(JSCFunctionType, setter) - 0usize];
1909    ["Offset of field: JSCFunctionType::getter_magic"]
1910        [::core::mem::offset_of!(JSCFunctionType, getter_magic) - 0usize];
1911    ["Offset of field: JSCFunctionType::setter_magic"]
1912        [::core::mem::offset_of!(JSCFunctionType, setter_magic) - 0usize];
1913    ["Offset of field: JSCFunctionType::iterator_next"]
1914        [::core::mem::offset_of!(JSCFunctionType, iterator_next) - 0usize];
1915};
1916unsafe extern "C" {
1917    pub fn JS_NewCFunction2(
1918        ctx: *mut JSContext,
1919        func: JSCFunction,
1920        name: *const ::core::ffi::c_char,
1921        length: ::core::ffi::c_int,
1922        cproto: JSCFunctionEnum,
1923        magic: ::core::ffi::c_int,
1924    ) -> JSValue;
1925}
1926unsafe extern "C" {
1927    pub fn JS_NewCFunction3(
1928        ctx: *mut JSContext,
1929        func: JSCFunction,
1930        name: *const ::core::ffi::c_char,
1931        length: ::core::ffi::c_int,
1932        cproto: JSCFunctionEnum,
1933        magic: ::core::ffi::c_int,
1934        proto_val: JSValue,
1935        n_fields: ::core::ffi::c_int,
1936    ) -> JSValue;
1937}
1938unsafe extern "C" {
1939    pub fn JS_NewCFunctionData(
1940        ctx: *mut JSContext,
1941        func: JSCFunctionData,
1942        length: ::core::ffi::c_int,
1943        magic: ::core::ffi::c_int,
1944        data_len: ::core::ffi::c_int,
1945        data: *mut JSValue,
1946    ) -> JSValue;
1947}
1948unsafe extern "C" {
1949    pub fn JS_NewCFunctionData2(
1950        ctx: *mut JSContext,
1951        func: JSCFunctionData,
1952        name: *const ::core::ffi::c_char,
1953        length: ::core::ffi::c_int,
1954        magic: ::core::ffi::c_int,
1955        data_len: ::core::ffi::c_int,
1956        data: *mut JSValue,
1957    ) -> JSValue;
1958}
1959pub type JSCClosureFinalizerFunc =
1960    ::core::option::Option<unsafe extern "C" fn(arg1: *mut ::core::ffi::c_void)>;
1961unsafe extern "C" {
1962    pub fn JS_NewCClosure(
1963        ctx: *mut JSContext,
1964        func: JSCClosure,
1965        name: *const ::core::ffi::c_char,
1966        opaque_finalize: JSCClosureFinalizerFunc,
1967        length: ::core::ffi::c_int,
1968        magic: ::core::ffi::c_int,
1969        opaque: *mut ::core::ffi::c_void,
1970    ) -> JSValue;
1971}
1972unsafe extern "C" {
1973    pub fn JS_SetConstructor(
1974        ctx: *mut JSContext,
1975        func_obj: JSValue,
1976        proto: JSValue,
1977    ) -> ::core::ffi::c_int;
1978}
1979#[repr(C)]
1980#[derive(Copy, Clone)]
1981pub struct JSCFunctionListEntry {
1982    pub name: *const ::core::ffi::c_char,
1983    pub prop_flags: u8,
1984    pub def_type: u8,
1985    pub magic: i16,
1986    pub u: JSCFunctionListEntry__bindgen_ty_1,
1987}
1988#[repr(C)]
1989#[derive(Copy, Clone)]
1990pub union JSCFunctionListEntry__bindgen_ty_1 {
1991    pub func: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1,
1992    pub getset: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2,
1993    pub alias: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3,
1994    pub prop_list: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4,
1995    pub str_: *const ::core::ffi::c_char,
1996    pub i32_: i32,
1997    pub i64_: i64,
1998    pub u64_: u64,
1999    pub f64_: f64,
2000}
2001#[repr(C)]
2002#[derive(Copy, Clone)]
2003pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 {
2004    pub length: u8,
2005    pub cproto: u8,
2006    pub cfunc: JSCFunctionType,
2007}
2008#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2009const _: () = {
2010    ["Size of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1"]
2011        [::core::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1>() - 16usize];
2012    ["Alignment of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1"]
2013        [::core::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1>() - 8usize];
2014    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1::length"][::core::mem::offset_of!(
2015        JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1,
2016        length
2017    ) - 0usize];
2018    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1::cproto"][::core::mem::offset_of!(
2019        JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1,
2020        cproto
2021    ) - 1usize];
2022    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1::cfunc"]
2023        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1, cfunc) - 8usize];
2024};
2025#[repr(C)]
2026#[derive(Copy, Clone)]
2027pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 {
2028    pub get: JSCFunctionType,
2029    pub set: JSCFunctionType,
2030}
2031#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2032const _: () = {
2033    ["Size of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2"]
2034        [::core::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2>() - 16usize];
2035    ["Alignment of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2"]
2036        [::core::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2>() - 8usize];
2037    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2::get"]
2038        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2, get) - 0usize];
2039    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2::set"]
2040        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2, set) - 8usize];
2041};
2042#[repr(C)]
2043#[derive(Debug, Copy, Clone)]
2044pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 {
2045    pub name: *const ::core::ffi::c_char,
2046    pub base: ::core::ffi::c_int,
2047}
2048#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2049const _: () = {
2050    ["Size of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3"]
2051        [::core::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3>() - 16usize];
2052    ["Alignment of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3"]
2053        [::core::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3>() - 8usize];
2054    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3::name"]
2055        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3, name) - 0usize];
2056    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3::base"]
2057        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3, base) - 8usize];
2058};
2059#[repr(C)]
2060#[derive(Debug, Copy, Clone)]
2061pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 {
2062    pub tab: *const JSCFunctionListEntry,
2063    pub len: ::core::ffi::c_int,
2064}
2065#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2066const _: () = {
2067    ["Size of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4"]
2068        [::core::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4>() - 16usize];
2069    ["Alignment of JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4"]
2070        [::core::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4>() - 8usize];
2071    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4::tab"]
2072        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4, tab) - 0usize];
2073    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4::len"]
2074        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4, len) - 8usize];
2075};
2076#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2077const _: () = {
2078    ["Size of JSCFunctionListEntry__bindgen_ty_1"]
2079        [::core::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1>() - 16usize];
2080    ["Alignment of JSCFunctionListEntry__bindgen_ty_1"]
2081        [::core::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1>() - 8usize];
2082    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::func"]
2083        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, func) - 0usize];
2084    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::getset"]
2085        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, getset) - 0usize];
2086    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::alias"]
2087        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, alias) - 0usize];
2088    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::prop_list"]
2089        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, prop_list) - 0usize];
2090    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::str_"]
2091        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, str_) - 0usize];
2092    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::i32_"]
2093        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, i32_) - 0usize];
2094    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::i64_"]
2095        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, i64_) - 0usize];
2096    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::u64_"]
2097        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, u64_) - 0usize];
2098    ["Offset of field: JSCFunctionListEntry__bindgen_ty_1::f64_"]
2099        [::core::mem::offset_of!(JSCFunctionListEntry__bindgen_ty_1, f64_) - 0usize];
2100};
2101#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2102const _: () = {
2103    ["Size of JSCFunctionListEntry"][::core::mem::size_of::<JSCFunctionListEntry>() - 32usize];
2104    ["Alignment of JSCFunctionListEntry"][::core::mem::align_of::<JSCFunctionListEntry>() - 8usize];
2105    ["Offset of field: JSCFunctionListEntry::name"]
2106        [::core::mem::offset_of!(JSCFunctionListEntry, name) - 0usize];
2107    ["Offset of field: JSCFunctionListEntry::prop_flags"]
2108        [::core::mem::offset_of!(JSCFunctionListEntry, prop_flags) - 8usize];
2109    ["Offset of field: JSCFunctionListEntry::def_type"]
2110        [::core::mem::offset_of!(JSCFunctionListEntry, def_type) - 9usize];
2111    ["Offset of field: JSCFunctionListEntry::magic"]
2112        [::core::mem::offset_of!(JSCFunctionListEntry, magic) - 10usize];
2113    ["Offset of field: JSCFunctionListEntry::u"]
2114        [::core::mem::offset_of!(JSCFunctionListEntry, u) - 16usize];
2115};
2116unsafe extern "C" {
2117    pub fn JS_SetPropertyFunctionList(
2118        ctx: *mut JSContext,
2119        obj: JSValue,
2120        tab: *const JSCFunctionListEntry,
2121        len: ::core::ffi::c_int,
2122    ) -> ::core::ffi::c_int;
2123}
2124pub type JSModuleInitFunc = ::core::option::Option<
2125    unsafe extern "C" fn(ctx: *mut JSContext, m: *mut JSModuleDef) -> ::core::ffi::c_int,
2126>;
2127unsafe extern "C" {
2128    pub fn JS_NewCModule(
2129        ctx: *mut JSContext,
2130        name_str: *const ::core::ffi::c_char,
2131        func: JSModuleInitFunc,
2132    ) -> *mut JSModuleDef;
2133}
2134unsafe extern "C" {
2135    pub fn JS_AddModuleExport(
2136        ctx: *mut JSContext,
2137        m: *mut JSModuleDef,
2138        name_str: *const ::core::ffi::c_char,
2139    ) -> ::core::ffi::c_int;
2140}
2141unsafe extern "C" {
2142    pub fn JS_AddModuleExportList(
2143        ctx: *mut JSContext,
2144        m: *mut JSModuleDef,
2145        tab: *const JSCFunctionListEntry,
2146        len: ::core::ffi::c_int,
2147    ) -> ::core::ffi::c_int;
2148}
2149unsafe extern "C" {
2150    pub fn JS_SetModuleExport(
2151        ctx: *mut JSContext,
2152        m: *mut JSModuleDef,
2153        export_name: *const ::core::ffi::c_char,
2154        val: JSValue,
2155    ) -> ::core::ffi::c_int;
2156}
2157unsafe extern "C" {
2158    pub fn JS_SetModuleExportList(
2159        ctx: *mut JSContext,
2160        m: *mut JSModuleDef,
2161        tab: *const JSCFunctionListEntry,
2162        len: ::core::ffi::c_int,
2163    ) -> ::core::ffi::c_int;
2164}
2165unsafe extern "C" {
2166    pub fn JS_GetVersion() -> *const ::core::ffi::c_char;
2167}
2168unsafe extern "C" {
2169    pub fn js_std_cmd(cmd: ::core::ffi::c_int, ...) -> usize;
2170}
2171pub const __JS_ATOM_NULL: _bindgen_ty_4 = 0;
2172pub const JS_ATOM_null: _bindgen_ty_4 = 1;
2173pub const JS_ATOM_false: _bindgen_ty_4 = 2;
2174pub const JS_ATOM_true: _bindgen_ty_4 = 3;
2175pub const JS_ATOM_if: _bindgen_ty_4 = 4;
2176pub const JS_ATOM_else: _bindgen_ty_4 = 5;
2177pub const JS_ATOM_return: _bindgen_ty_4 = 6;
2178pub const JS_ATOM_var: _bindgen_ty_4 = 7;
2179pub const JS_ATOM_this: _bindgen_ty_4 = 8;
2180pub const JS_ATOM_delete: _bindgen_ty_4 = 9;
2181pub const JS_ATOM_void: _bindgen_ty_4 = 10;
2182pub const JS_ATOM_typeof: _bindgen_ty_4 = 11;
2183pub const JS_ATOM_new: _bindgen_ty_4 = 12;
2184pub const JS_ATOM_in: _bindgen_ty_4 = 13;
2185pub const JS_ATOM_instanceof: _bindgen_ty_4 = 14;
2186pub const JS_ATOM_do: _bindgen_ty_4 = 15;
2187pub const JS_ATOM_while: _bindgen_ty_4 = 16;
2188pub const JS_ATOM_for: _bindgen_ty_4 = 17;
2189pub const JS_ATOM_break: _bindgen_ty_4 = 18;
2190pub const JS_ATOM_continue: _bindgen_ty_4 = 19;
2191pub const JS_ATOM_switch: _bindgen_ty_4 = 20;
2192pub const JS_ATOM_case: _bindgen_ty_4 = 21;
2193pub const JS_ATOM_default: _bindgen_ty_4 = 22;
2194pub const JS_ATOM_throw: _bindgen_ty_4 = 23;
2195pub const JS_ATOM_try: _bindgen_ty_4 = 24;
2196pub const JS_ATOM_catch: _bindgen_ty_4 = 25;
2197pub const JS_ATOM_finally: _bindgen_ty_4 = 26;
2198pub const JS_ATOM_function: _bindgen_ty_4 = 27;
2199pub const JS_ATOM_debugger: _bindgen_ty_4 = 28;
2200pub const JS_ATOM_with: _bindgen_ty_4 = 29;
2201pub const JS_ATOM_class: _bindgen_ty_4 = 30;
2202pub const JS_ATOM_const: _bindgen_ty_4 = 31;
2203pub const JS_ATOM_enum: _bindgen_ty_4 = 32;
2204pub const JS_ATOM_export: _bindgen_ty_4 = 33;
2205pub const JS_ATOM_extends: _bindgen_ty_4 = 34;
2206pub const JS_ATOM_import: _bindgen_ty_4 = 35;
2207pub const JS_ATOM_super: _bindgen_ty_4 = 36;
2208pub const JS_ATOM_using: _bindgen_ty_4 = 37;
2209pub const JS_ATOM_implements: _bindgen_ty_4 = 38;
2210pub const JS_ATOM_interface: _bindgen_ty_4 = 39;
2211pub const JS_ATOM_let: _bindgen_ty_4 = 40;
2212pub const JS_ATOM_package: _bindgen_ty_4 = 41;
2213pub const JS_ATOM_private: _bindgen_ty_4 = 42;
2214pub const JS_ATOM_protected: _bindgen_ty_4 = 43;
2215pub const JS_ATOM_public: _bindgen_ty_4 = 44;
2216pub const JS_ATOM_static: _bindgen_ty_4 = 45;
2217pub const JS_ATOM_yield: _bindgen_ty_4 = 46;
2218pub const JS_ATOM_await: _bindgen_ty_4 = 47;
2219pub const JS_ATOM_empty_string: _bindgen_ty_4 = 48;
2220pub const JS_ATOM_keys: _bindgen_ty_4 = 49;
2221pub const JS_ATOM_size: _bindgen_ty_4 = 50;
2222pub const JS_ATOM_length: _bindgen_ty_4 = 51;
2223pub const JS_ATOM_message: _bindgen_ty_4 = 52;
2224pub const JS_ATOM_cause: _bindgen_ty_4 = 53;
2225pub const JS_ATOM_errors: _bindgen_ty_4 = 54;
2226pub const JS_ATOM_error: _bindgen_ty_4 = 55;
2227pub const JS_ATOM_suppressed: _bindgen_ty_4 = 56;
2228pub const JS_ATOM_stack: _bindgen_ty_4 = 57;
2229pub const JS_ATOM_name: _bindgen_ty_4 = 58;
2230pub const JS_ATOM_toString: _bindgen_ty_4 = 59;
2231pub const JS_ATOM_toLocaleString: _bindgen_ty_4 = 60;
2232pub const JS_ATOM_valueOf: _bindgen_ty_4 = 61;
2233pub const JS_ATOM_eval: _bindgen_ty_4 = 62;
2234pub const JS_ATOM_prototype: _bindgen_ty_4 = 63;
2235pub const JS_ATOM_constructor: _bindgen_ty_4 = 64;
2236pub const JS_ATOM_configurable: _bindgen_ty_4 = 65;
2237pub const JS_ATOM_writable: _bindgen_ty_4 = 66;
2238pub const JS_ATOM_enumerable: _bindgen_ty_4 = 67;
2239pub const JS_ATOM_value: _bindgen_ty_4 = 68;
2240pub const JS_ATOM_get: _bindgen_ty_4 = 69;
2241pub const JS_ATOM_set: _bindgen_ty_4 = 70;
2242pub const JS_ATOM_of: _bindgen_ty_4 = 71;
2243pub const JS_ATOM___proto__: _bindgen_ty_4 = 72;
2244pub const JS_ATOM_undefined: _bindgen_ty_4 = 73;
2245pub const JS_ATOM_number: _bindgen_ty_4 = 74;
2246pub const JS_ATOM_boolean: _bindgen_ty_4 = 75;
2247pub const JS_ATOM_string: _bindgen_ty_4 = 76;
2248pub const JS_ATOM_object: _bindgen_ty_4 = 77;
2249pub const JS_ATOM_symbol: _bindgen_ty_4 = 78;
2250pub const JS_ATOM_integer: _bindgen_ty_4 = 79;
2251pub const JS_ATOM_unknown: _bindgen_ty_4 = 80;
2252pub const JS_ATOM_arguments: _bindgen_ty_4 = 81;
2253pub const JS_ATOM_callee: _bindgen_ty_4 = 82;
2254pub const JS_ATOM_caller: _bindgen_ty_4 = 83;
2255pub const JS_ATOM__eval_: _bindgen_ty_4 = 84;
2256pub const JS_ATOM__ret_: _bindgen_ty_4 = 85;
2257pub const JS_ATOM__var_: _bindgen_ty_4 = 86;
2258pub const JS_ATOM__arg_var_: _bindgen_ty_4 = 87;
2259pub const JS_ATOM__with_: _bindgen_ty_4 = 88;
2260pub const JS_ATOM__using_dispose_: _bindgen_ty_4 = 89;
2261pub const JS_ATOM_use: _bindgen_ty_4 = 90;
2262pub const JS_ATOM_dispose: _bindgen_ty_4 = 91;
2263pub const JS_ATOM_disposeAsync: _bindgen_ty_4 = 92;
2264pub const JS_ATOM_lastIndex: _bindgen_ty_4 = 93;
2265pub const JS_ATOM_target: _bindgen_ty_4 = 94;
2266pub const JS_ATOM_index: _bindgen_ty_4 = 95;
2267pub const JS_ATOM_input: _bindgen_ty_4 = 96;
2268pub const JS_ATOM_defineProperties: _bindgen_ty_4 = 97;
2269pub const JS_ATOM_apply: _bindgen_ty_4 = 98;
2270pub const JS_ATOM_join: _bindgen_ty_4 = 99;
2271pub const JS_ATOM_split: _bindgen_ty_4 = 100;
2272pub const JS_ATOM_construct: _bindgen_ty_4 = 101;
2273pub const JS_ATOM_getPrototypeOf: _bindgen_ty_4 = 102;
2274pub const JS_ATOM_setPrototypeOf: _bindgen_ty_4 = 103;
2275pub const JS_ATOM_isExtensible: _bindgen_ty_4 = 104;
2276pub const JS_ATOM_preventExtensions: _bindgen_ty_4 = 105;
2277pub const JS_ATOM_has: _bindgen_ty_4 = 106;
2278pub const JS_ATOM_deleteProperty: _bindgen_ty_4 = 107;
2279pub const JS_ATOM_defineProperty: _bindgen_ty_4 = 108;
2280pub const JS_ATOM_getOwnPropertyDescriptor: _bindgen_ty_4 = 109;
2281pub const JS_ATOM_ownKeys: _bindgen_ty_4 = 110;
2282pub const JS_ATOM_add: _bindgen_ty_4 = 111;
2283pub const JS_ATOM_done: _bindgen_ty_4 = 112;
2284pub const JS_ATOM_next: _bindgen_ty_4 = 113;
2285pub const JS_ATOM_values: _bindgen_ty_4 = 114;
2286pub const JS_ATOM_source: _bindgen_ty_4 = 115;
2287pub const JS_ATOM_flags: _bindgen_ty_4 = 116;
2288pub const JS_ATOM_global: _bindgen_ty_4 = 117;
2289pub const JS_ATOM_unicode: _bindgen_ty_4 = 118;
2290pub const JS_ATOM_raw: _bindgen_ty_4 = 119;
2291pub const JS_ATOM_rawJSON: _bindgen_ty_4 = 120;
2292pub const JS_ATOM_new_target: _bindgen_ty_4 = 121;
2293pub const JS_ATOM_this_active_func: _bindgen_ty_4 = 122;
2294pub const JS_ATOM_home_object: _bindgen_ty_4 = 123;
2295pub const JS_ATOM_computed_field: _bindgen_ty_4 = 124;
2296pub const JS_ATOM_static_computed_field: _bindgen_ty_4 = 125;
2297pub const JS_ATOM_class_fields_init: _bindgen_ty_4 = 126;
2298pub const JS_ATOM_brand: _bindgen_ty_4 = 127;
2299pub const JS_ATOM_hash_constructor: _bindgen_ty_4 = 128;
2300pub const JS_ATOM_as: _bindgen_ty_4 = 129;
2301pub const JS_ATOM_from: _bindgen_ty_4 = 130;
2302pub const JS_ATOM_fromAsync: _bindgen_ty_4 = 131;
2303pub const JS_ATOM_meta: _bindgen_ty_4 = 132;
2304pub const JS_ATOM__default_: _bindgen_ty_4 = 133;
2305pub const JS_ATOM__star_: _bindgen_ty_4 = 134;
2306pub const JS_ATOM_Module: _bindgen_ty_4 = 135;
2307pub const JS_ATOM_then: _bindgen_ty_4 = 136;
2308pub const JS_ATOM_resolve: _bindgen_ty_4 = 137;
2309pub const JS_ATOM_reject: _bindgen_ty_4 = 138;
2310pub const JS_ATOM_promise: _bindgen_ty_4 = 139;
2311pub const JS_ATOM_proxy: _bindgen_ty_4 = 140;
2312pub const JS_ATOM_revoke: _bindgen_ty_4 = 141;
2313pub const JS_ATOM_async: _bindgen_ty_4 = 142;
2314pub const JS_ATOM_exec: _bindgen_ty_4 = 143;
2315pub const JS_ATOM_groups: _bindgen_ty_4 = 144;
2316pub const JS_ATOM_indices: _bindgen_ty_4 = 145;
2317pub const JS_ATOM_status: _bindgen_ty_4 = 146;
2318pub const JS_ATOM_reason: _bindgen_ty_4 = 147;
2319pub const JS_ATOM_globalThis: _bindgen_ty_4 = 148;
2320pub const JS_ATOM_bigint: _bindgen_ty_4 = 149;
2321pub const JS_ATOM_not_equal: _bindgen_ty_4 = 150;
2322pub const JS_ATOM_timed_out: _bindgen_ty_4 = 151;
2323pub const JS_ATOM_ok: _bindgen_ty_4 = 152;
2324pub const JS_ATOM_toJSON: _bindgen_ty_4 = 153;
2325pub const JS_ATOM_maxByteLength: _bindgen_ty_4 = 154;
2326pub const JS_ATOM_zip: _bindgen_ty_4 = 155;
2327pub const JS_ATOM_zipKeyed: _bindgen_ty_4 = 156;
2328pub const JS_ATOM_Object: _bindgen_ty_4 = 157;
2329pub const JS_ATOM_Array: _bindgen_ty_4 = 158;
2330pub const JS_ATOM_Error: _bindgen_ty_4 = 159;
2331pub const JS_ATOM_Number: _bindgen_ty_4 = 160;
2332pub const JS_ATOM_String: _bindgen_ty_4 = 161;
2333pub const JS_ATOM_Boolean: _bindgen_ty_4 = 162;
2334pub const JS_ATOM_Symbol: _bindgen_ty_4 = 163;
2335pub const JS_ATOM_Arguments: _bindgen_ty_4 = 164;
2336pub const JS_ATOM_Math: _bindgen_ty_4 = 165;
2337pub const JS_ATOM_JSON: _bindgen_ty_4 = 166;
2338pub const JS_ATOM_Date: _bindgen_ty_4 = 167;
2339pub const JS_ATOM_Function: _bindgen_ty_4 = 168;
2340pub const JS_ATOM_GeneratorFunction: _bindgen_ty_4 = 169;
2341pub const JS_ATOM_ForInIterator: _bindgen_ty_4 = 170;
2342pub const JS_ATOM_RegExp: _bindgen_ty_4 = 171;
2343pub const JS_ATOM_ArrayBuffer: _bindgen_ty_4 = 172;
2344pub const JS_ATOM_SharedArrayBuffer: _bindgen_ty_4 = 173;
2345pub const JS_ATOM_Uint8ClampedArray: _bindgen_ty_4 = 174;
2346pub const JS_ATOM_Int8Array: _bindgen_ty_4 = 175;
2347pub const JS_ATOM_Uint8Array: _bindgen_ty_4 = 176;
2348pub const JS_ATOM_Int16Array: _bindgen_ty_4 = 177;
2349pub const JS_ATOM_Uint16Array: _bindgen_ty_4 = 178;
2350pub const JS_ATOM_Int32Array: _bindgen_ty_4 = 179;
2351pub const JS_ATOM_Uint32Array: _bindgen_ty_4 = 180;
2352pub const JS_ATOM_BigInt64Array: _bindgen_ty_4 = 181;
2353pub const JS_ATOM_BigUint64Array: _bindgen_ty_4 = 182;
2354pub const JS_ATOM_Float16Array: _bindgen_ty_4 = 183;
2355pub const JS_ATOM_Float32Array: _bindgen_ty_4 = 184;
2356pub const JS_ATOM_Float64Array: _bindgen_ty_4 = 185;
2357pub const JS_ATOM_DataView: _bindgen_ty_4 = 186;
2358pub const JS_ATOM_BigInt: _bindgen_ty_4 = 187;
2359pub const JS_ATOM_WeakRef: _bindgen_ty_4 = 188;
2360pub const JS_ATOM_FinalizationRegistry: _bindgen_ty_4 = 189;
2361pub const JS_ATOM_Map: _bindgen_ty_4 = 190;
2362pub const JS_ATOM_Set: _bindgen_ty_4 = 191;
2363pub const JS_ATOM_WeakMap: _bindgen_ty_4 = 192;
2364pub const JS_ATOM_WeakSet: _bindgen_ty_4 = 193;
2365pub const JS_ATOM_Iterator: _bindgen_ty_4 = 194;
2366pub const JS_ATOM_IteratorConcat: _bindgen_ty_4 = 195;
2367pub const JS_ATOM_IteratorHelper: _bindgen_ty_4 = 196;
2368pub const JS_ATOM_IteratorWrap: _bindgen_ty_4 = 197;
2369pub const JS_ATOM_Map_Iterator: _bindgen_ty_4 = 198;
2370pub const JS_ATOM_Set_Iterator: _bindgen_ty_4 = 199;
2371pub const JS_ATOM_Array_Iterator: _bindgen_ty_4 = 200;
2372pub const JS_ATOM_String_Iterator: _bindgen_ty_4 = 201;
2373pub const JS_ATOM_RegExp_String_Iterator: _bindgen_ty_4 = 202;
2374pub const JS_ATOM_Generator: _bindgen_ty_4 = 203;
2375pub const JS_ATOM_Proxy: _bindgen_ty_4 = 204;
2376pub const JS_ATOM_Promise: _bindgen_ty_4 = 205;
2377pub const JS_ATOM_PromiseResolveFunction: _bindgen_ty_4 = 206;
2378pub const JS_ATOM_PromiseRejectFunction: _bindgen_ty_4 = 207;
2379pub const JS_ATOM_AsyncFunction: _bindgen_ty_4 = 208;
2380pub const JS_ATOM_AsyncFunctionResolve: _bindgen_ty_4 = 209;
2381pub const JS_ATOM_AsyncFunctionReject: _bindgen_ty_4 = 210;
2382pub const JS_ATOM_AsyncGeneratorFunction: _bindgen_ty_4 = 211;
2383pub const JS_ATOM_AsyncGenerator: _bindgen_ty_4 = 212;
2384pub const JS_ATOM_EvalError: _bindgen_ty_4 = 213;
2385pub const JS_ATOM_RangeError: _bindgen_ty_4 = 214;
2386pub const JS_ATOM_ReferenceError: _bindgen_ty_4 = 215;
2387pub const JS_ATOM_SyntaxError: _bindgen_ty_4 = 216;
2388pub const JS_ATOM_TypeError: _bindgen_ty_4 = 217;
2389pub const JS_ATOM_URIError: _bindgen_ty_4 = 218;
2390pub const JS_ATOM_InternalError: _bindgen_ty_4 = 219;
2391pub const JS_ATOM_DOMException: _bindgen_ty_4 = 220;
2392pub const JS_ATOM_CallSite: _bindgen_ty_4 = 221;
2393pub const JS_ATOM_DisposableStack: _bindgen_ty_4 = 222;
2394pub const JS_ATOM_AsyncDisposableStack: _bindgen_ty_4 = 223;
2395pub const JS_ATOM_SuppressedError: _bindgen_ty_4 = 224;
2396pub const JS_ATOM_Private_brand: _bindgen_ty_4 = 225;
2397pub const JS_ATOM_Symbol_toPrimitive: _bindgen_ty_4 = 226;
2398pub const JS_ATOM_Symbol_iterator: _bindgen_ty_4 = 227;
2399pub const JS_ATOM_Symbol_match: _bindgen_ty_4 = 228;
2400pub const JS_ATOM_Symbol_matchAll: _bindgen_ty_4 = 229;
2401pub const JS_ATOM_Symbol_replace: _bindgen_ty_4 = 230;
2402pub const JS_ATOM_Symbol_search: _bindgen_ty_4 = 231;
2403pub const JS_ATOM_Symbol_split: _bindgen_ty_4 = 232;
2404pub const JS_ATOM_Symbol_toStringTag: _bindgen_ty_4 = 233;
2405pub const JS_ATOM_Symbol_isConcatSpreadable: _bindgen_ty_4 = 234;
2406pub const JS_ATOM_Symbol_hasInstance: _bindgen_ty_4 = 235;
2407pub const JS_ATOM_Symbol_species: _bindgen_ty_4 = 236;
2408pub const JS_ATOM_Symbol_unscopables: _bindgen_ty_4 = 237;
2409pub const JS_ATOM_Symbol_asyncIterator: _bindgen_ty_4 = 238;
2410pub const JS_ATOM_Symbol_dispose: _bindgen_ty_4 = 239;
2411pub const JS_ATOM_Symbol_asyncDispose: _bindgen_ty_4 = 240;
2412pub const JS_ATOM_END: _bindgen_ty_4 = 241;
2413pub type _bindgen_ty_4 = ::core::ffi::c_uint;