diff --git a/sys/src/bindings/aarch64-apple-darwin.rs b/sys/src/bindings/aarch64-apple-darwin.rs index d3649472..f02f35b5 100644 --- a/sys/src/bindings/aarch64-apple-darwin.rs +++ b/sys/src/bindings/aarch64-apple-darwin.rs @@ -1279,6 +1279,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1345,6 +1351,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1422,6 +1431,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1435,6 +1447,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1444,6 +1462,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1530,6 +1551,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1871,6 +1898,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, diff --git a/sys/src/bindings/aarch64-unknown-linux-gnu.rs b/sys/src/bindings/aarch64-unknown-linux-gnu.rs index c7152add..9b97fb2c 100644 --- a/sys/src/bindings/aarch64-unknown-linux-gnu.rs +++ b/sys/src/bindings/aarch64-unknown-linux-gnu.rs @@ -85,22 +85,22 @@ pub struct JSClass { } pub type JSClassID = u32; pub type JSAtom = u32; -pub const JS_TAG_FIRST: _bindgen_ty_1 = -9; -pub const JS_TAG_BIG_INT: _bindgen_ty_1 = -9; -pub const JS_TAG_SYMBOL: _bindgen_ty_1 = -8; -pub const JS_TAG_STRING: _bindgen_ty_1 = -7; -pub const JS_TAG_MODULE: _bindgen_ty_1 = -3; -pub const JS_TAG_FUNCTION_BYTECODE: _bindgen_ty_1 = -2; -pub const JS_TAG_OBJECT: _bindgen_ty_1 = -1; -pub const JS_TAG_INT: _bindgen_ty_1 = 0; -pub const JS_TAG_BOOL: _bindgen_ty_1 = 1; -pub const JS_TAG_NULL: _bindgen_ty_1 = 2; -pub const JS_TAG_UNDEFINED: _bindgen_ty_1 = 3; -pub const JS_TAG_UNINITIALIZED: _bindgen_ty_1 = 4; -pub const JS_TAG_CATCH_OFFSET: _bindgen_ty_1 = 5; -pub const JS_TAG_EXCEPTION: _bindgen_ty_1 = 6; -pub const JS_TAG_FLOAT64: _bindgen_ty_1 = 7; -pub type _bindgen_ty_1 = ::std::os::raw::c_int; +pub const JS_TAG_FIRST: _bindgen_ty_3 = -9; +pub const JS_TAG_BIG_INT: _bindgen_ty_3 = -9; +pub const JS_TAG_SYMBOL: _bindgen_ty_3 = -8; +pub const JS_TAG_STRING: _bindgen_ty_3 = -7; +pub const JS_TAG_MODULE: _bindgen_ty_3 = -3; +pub const JS_TAG_FUNCTION_BYTECODE: _bindgen_ty_3 = -2; +pub const JS_TAG_OBJECT: _bindgen_ty_3 = -1; +pub const JS_TAG_INT: _bindgen_ty_3 = 0; +pub const JS_TAG_BOOL: _bindgen_ty_3 = 1; +pub const JS_TAG_NULL: _bindgen_ty_3 = 2; +pub const JS_TAG_UNDEFINED: _bindgen_ty_3 = 3; +pub const JS_TAG_UNINITIALIZED: _bindgen_ty_3 = 4; +pub const JS_TAG_CATCH_OFFSET: _bindgen_ty_3 = 5; +pub const JS_TAG_EXCEPTION: _bindgen_ty_3 = 6; +pub const JS_TAG_FLOAT64: _bindgen_ty_3 = 7; +pub type _bindgen_ty_3 = ::std::os::raw::c_int; #[repr(C)] #[derive(Copy, Clone)] pub union JSValueUnion { @@ -1278,6 +1278,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1344,6 +1350,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1421,6 +1430,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1434,6 +1446,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1443,6 +1461,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1529,6 +1550,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1870,6 +1897,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, @@ -2751,229 +2781,229 @@ extern "C" { extern "C" { pub fn js_std_cmd(cmd: ::std::os::raw::c_int, ...) -> usize; } -pub const __JS_ATOM_NULL: _bindgen_ty_2 = 0; -pub const JS_ATOM_null: _bindgen_ty_2 = 1; -pub const JS_ATOM_false: _bindgen_ty_2 = 2; -pub const JS_ATOM_true: _bindgen_ty_2 = 3; -pub const JS_ATOM_if: _bindgen_ty_2 = 4; -pub const JS_ATOM_else: _bindgen_ty_2 = 5; -pub const JS_ATOM_return: _bindgen_ty_2 = 6; -pub const JS_ATOM_var: _bindgen_ty_2 = 7; -pub const JS_ATOM_this: _bindgen_ty_2 = 8; -pub const JS_ATOM_delete: _bindgen_ty_2 = 9; -pub const JS_ATOM_void: _bindgen_ty_2 = 10; -pub const JS_ATOM_typeof: _bindgen_ty_2 = 11; -pub const JS_ATOM_new: _bindgen_ty_2 = 12; -pub const JS_ATOM_in: _bindgen_ty_2 = 13; -pub const JS_ATOM_instanceof: _bindgen_ty_2 = 14; -pub const JS_ATOM_do: _bindgen_ty_2 = 15; -pub const JS_ATOM_while: _bindgen_ty_2 = 16; -pub const JS_ATOM_for: _bindgen_ty_2 = 17; -pub const JS_ATOM_break: _bindgen_ty_2 = 18; -pub const JS_ATOM_continue: _bindgen_ty_2 = 19; -pub const JS_ATOM_switch: _bindgen_ty_2 = 20; -pub const JS_ATOM_case: _bindgen_ty_2 = 21; -pub const JS_ATOM_default: _bindgen_ty_2 = 22; -pub const JS_ATOM_throw: _bindgen_ty_2 = 23; -pub const JS_ATOM_try: _bindgen_ty_2 = 24; -pub const JS_ATOM_catch: _bindgen_ty_2 = 25; -pub const JS_ATOM_finally: _bindgen_ty_2 = 26; -pub const JS_ATOM_function: _bindgen_ty_2 = 27; -pub const JS_ATOM_debugger: _bindgen_ty_2 = 28; -pub const JS_ATOM_with: _bindgen_ty_2 = 29; -pub const JS_ATOM_class: _bindgen_ty_2 = 30; -pub const JS_ATOM_const: _bindgen_ty_2 = 31; -pub const JS_ATOM_enum: _bindgen_ty_2 = 32; -pub const JS_ATOM_export: _bindgen_ty_2 = 33; -pub const JS_ATOM_extends: _bindgen_ty_2 = 34; -pub const JS_ATOM_import: _bindgen_ty_2 = 35; -pub const JS_ATOM_super: _bindgen_ty_2 = 36; -pub const JS_ATOM_implements: _bindgen_ty_2 = 37; -pub const JS_ATOM_interface: _bindgen_ty_2 = 38; -pub const JS_ATOM_let: _bindgen_ty_2 = 39; -pub const JS_ATOM_package: _bindgen_ty_2 = 40; -pub const JS_ATOM_private: _bindgen_ty_2 = 41; -pub const JS_ATOM_protected: _bindgen_ty_2 = 42; -pub const JS_ATOM_public: _bindgen_ty_2 = 43; -pub const JS_ATOM_static: _bindgen_ty_2 = 44; -pub const JS_ATOM_yield: _bindgen_ty_2 = 45; -pub const JS_ATOM_await: _bindgen_ty_2 = 46; -pub const JS_ATOM_empty_string: _bindgen_ty_2 = 47; -pub const JS_ATOM_keys: _bindgen_ty_2 = 48; -pub const JS_ATOM_size: _bindgen_ty_2 = 49; -pub const JS_ATOM_length: _bindgen_ty_2 = 50; -pub const JS_ATOM_message: _bindgen_ty_2 = 51; -pub const JS_ATOM_cause: _bindgen_ty_2 = 52; -pub const JS_ATOM_errors: _bindgen_ty_2 = 53; -pub const JS_ATOM_stack: _bindgen_ty_2 = 54; -pub const JS_ATOM_name: _bindgen_ty_2 = 55; -pub const JS_ATOM_toString: _bindgen_ty_2 = 56; -pub const JS_ATOM_toLocaleString: _bindgen_ty_2 = 57; -pub const JS_ATOM_valueOf: _bindgen_ty_2 = 58; -pub const JS_ATOM_eval: _bindgen_ty_2 = 59; -pub const JS_ATOM_prototype: _bindgen_ty_2 = 60; -pub const JS_ATOM_constructor: _bindgen_ty_2 = 61; -pub const JS_ATOM_configurable: _bindgen_ty_2 = 62; -pub const JS_ATOM_writable: _bindgen_ty_2 = 63; -pub const JS_ATOM_enumerable: _bindgen_ty_2 = 64; -pub const JS_ATOM_value: _bindgen_ty_2 = 65; -pub const JS_ATOM_get: _bindgen_ty_2 = 66; -pub const JS_ATOM_set: _bindgen_ty_2 = 67; -pub const JS_ATOM_of: _bindgen_ty_2 = 68; -pub const JS_ATOM___proto__: _bindgen_ty_2 = 69; -pub const JS_ATOM_undefined: _bindgen_ty_2 = 70; -pub const JS_ATOM_number: _bindgen_ty_2 = 71; -pub const JS_ATOM_boolean: _bindgen_ty_2 = 72; -pub const JS_ATOM_string: _bindgen_ty_2 = 73; -pub const JS_ATOM_object: _bindgen_ty_2 = 74; -pub const JS_ATOM_symbol: _bindgen_ty_2 = 75; -pub const JS_ATOM_integer: _bindgen_ty_2 = 76; -pub const JS_ATOM_unknown: _bindgen_ty_2 = 77; -pub const JS_ATOM_arguments: _bindgen_ty_2 = 78; -pub const JS_ATOM_callee: _bindgen_ty_2 = 79; -pub const JS_ATOM_caller: _bindgen_ty_2 = 80; -pub const JS_ATOM__eval_: _bindgen_ty_2 = 81; -pub const JS_ATOM__ret_: _bindgen_ty_2 = 82; -pub const JS_ATOM__var_: _bindgen_ty_2 = 83; -pub const JS_ATOM__arg_var_: _bindgen_ty_2 = 84; -pub const JS_ATOM__with_: _bindgen_ty_2 = 85; -pub const JS_ATOM_lastIndex: _bindgen_ty_2 = 86; -pub const JS_ATOM_target: _bindgen_ty_2 = 87; -pub const JS_ATOM_index: _bindgen_ty_2 = 88; -pub const JS_ATOM_input: _bindgen_ty_2 = 89; -pub const JS_ATOM_defineProperties: _bindgen_ty_2 = 90; -pub const JS_ATOM_apply: _bindgen_ty_2 = 91; -pub const JS_ATOM_join: _bindgen_ty_2 = 92; -pub const JS_ATOM_concat: _bindgen_ty_2 = 93; -pub const JS_ATOM_split: _bindgen_ty_2 = 94; -pub const JS_ATOM_construct: _bindgen_ty_2 = 95; -pub const JS_ATOM_getPrototypeOf: _bindgen_ty_2 = 96; -pub const JS_ATOM_setPrototypeOf: _bindgen_ty_2 = 97; -pub const JS_ATOM_isExtensible: _bindgen_ty_2 = 98; -pub const JS_ATOM_preventExtensions: _bindgen_ty_2 = 99; -pub const JS_ATOM_has: _bindgen_ty_2 = 100; -pub const JS_ATOM_deleteProperty: _bindgen_ty_2 = 101; -pub const JS_ATOM_defineProperty: _bindgen_ty_2 = 102; -pub const JS_ATOM_getOwnPropertyDescriptor: _bindgen_ty_2 = 103; -pub const JS_ATOM_ownKeys: _bindgen_ty_2 = 104; -pub const JS_ATOM_add: _bindgen_ty_2 = 105; -pub const JS_ATOM_done: _bindgen_ty_2 = 106; -pub const JS_ATOM_next: _bindgen_ty_2 = 107; -pub const JS_ATOM_values: _bindgen_ty_2 = 108; -pub const JS_ATOM_source: _bindgen_ty_2 = 109; -pub const JS_ATOM_flags: _bindgen_ty_2 = 110; -pub const JS_ATOM_global: _bindgen_ty_2 = 111; -pub const JS_ATOM_unicode: _bindgen_ty_2 = 112; -pub const JS_ATOM_raw: _bindgen_ty_2 = 113; -pub const JS_ATOM_new_target: _bindgen_ty_2 = 114; -pub const JS_ATOM_this_active_func: _bindgen_ty_2 = 115; -pub const JS_ATOM_home_object: _bindgen_ty_2 = 116; -pub const JS_ATOM_computed_field: _bindgen_ty_2 = 117; -pub const JS_ATOM_static_computed_field: _bindgen_ty_2 = 118; -pub const JS_ATOM_class_fields_init: _bindgen_ty_2 = 119; -pub const JS_ATOM_brand: _bindgen_ty_2 = 120; -pub const JS_ATOM_hash_constructor: _bindgen_ty_2 = 121; -pub const JS_ATOM_as: _bindgen_ty_2 = 122; -pub const JS_ATOM_from: _bindgen_ty_2 = 123; -pub const JS_ATOM_meta: _bindgen_ty_2 = 124; -pub const JS_ATOM__default_: _bindgen_ty_2 = 125; -pub const JS_ATOM__star_: _bindgen_ty_2 = 126; -pub const JS_ATOM_Module: _bindgen_ty_2 = 127; -pub const JS_ATOM_then: _bindgen_ty_2 = 128; -pub const JS_ATOM_resolve: _bindgen_ty_2 = 129; -pub const JS_ATOM_reject: _bindgen_ty_2 = 130; -pub const JS_ATOM_promise: _bindgen_ty_2 = 131; -pub const JS_ATOM_proxy: _bindgen_ty_2 = 132; -pub const JS_ATOM_revoke: _bindgen_ty_2 = 133; -pub const JS_ATOM_async: _bindgen_ty_2 = 134; -pub const JS_ATOM_exec: _bindgen_ty_2 = 135; -pub const JS_ATOM_groups: _bindgen_ty_2 = 136; -pub const JS_ATOM_indices: _bindgen_ty_2 = 137; -pub const JS_ATOM_status: _bindgen_ty_2 = 138; -pub const JS_ATOM_reason: _bindgen_ty_2 = 139; -pub const JS_ATOM_globalThis: _bindgen_ty_2 = 140; -pub const JS_ATOM_bigint: _bindgen_ty_2 = 141; -pub const JS_ATOM_not_equal: _bindgen_ty_2 = 142; -pub const JS_ATOM_timed_out: _bindgen_ty_2 = 143; -pub const JS_ATOM_ok: _bindgen_ty_2 = 144; -pub const JS_ATOM_toJSON: _bindgen_ty_2 = 145; -pub const JS_ATOM_maxByteLength: _bindgen_ty_2 = 146; -pub const JS_ATOM_Object: _bindgen_ty_2 = 147; -pub const JS_ATOM_Array: _bindgen_ty_2 = 148; -pub const JS_ATOM_Error: _bindgen_ty_2 = 149; -pub const JS_ATOM_Number: _bindgen_ty_2 = 150; -pub const JS_ATOM_String: _bindgen_ty_2 = 151; -pub const JS_ATOM_Boolean: _bindgen_ty_2 = 152; -pub const JS_ATOM_Symbol: _bindgen_ty_2 = 153; -pub const JS_ATOM_Arguments: _bindgen_ty_2 = 154; -pub const JS_ATOM_Math: _bindgen_ty_2 = 155; -pub const JS_ATOM_JSON: _bindgen_ty_2 = 156; -pub const JS_ATOM_Date: _bindgen_ty_2 = 157; -pub const JS_ATOM_Function: _bindgen_ty_2 = 158; -pub const JS_ATOM_GeneratorFunction: _bindgen_ty_2 = 159; -pub const JS_ATOM_ForInIterator: _bindgen_ty_2 = 160; -pub const JS_ATOM_RegExp: _bindgen_ty_2 = 161; -pub const JS_ATOM_ArrayBuffer: _bindgen_ty_2 = 162; -pub const JS_ATOM_SharedArrayBuffer: _bindgen_ty_2 = 163; -pub const JS_ATOM_Uint8ClampedArray: _bindgen_ty_2 = 164; -pub const JS_ATOM_Int8Array: _bindgen_ty_2 = 165; -pub const JS_ATOM_Uint8Array: _bindgen_ty_2 = 166; -pub const JS_ATOM_Int16Array: _bindgen_ty_2 = 167; -pub const JS_ATOM_Uint16Array: _bindgen_ty_2 = 168; -pub const JS_ATOM_Int32Array: _bindgen_ty_2 = 169; -pub const JS_ATOM_Uint32Array: _bindgen_ty_2 = 170; -pub const JS_ATOM_BigInt64Array: _bindgen_ty_2 = 171; -pub const JS_ATOM_BigUint64Array: _bindgen_ty_2 = 172; -pub const JS_ATOM_Float16Array: _bindgen_ty_2 = 173; -pub const JS_ATOM_Float32Array: _bindgen_ty_2 = 174; -pub const JS_ATOM_Float64Array: _bindgen_ty_2 = 175; -pub const JS_ATOM_DataView: _bindgen_ty_2 = 176; -pub const JS_ATOM_BigInt: _bindgen_ty_2 = 177; -pub const JS_ATOM_WeakRef: _bindgen_ty_2 = 178; -pub const JS_ATOM_FinalizationRegistry: _bindgen_ty_2 = 179; -pub const JS_ATOM_Map: _bindgen_ty_2 = 180; -pub const JS_ATOM_Set: _bindgen_ty_2 = 181; -pub const JS_ATOM_WeakMap: _bindgen_ty_2 = 182; -pub const JS_ATOM_WeakSet: _bindgen_ty_2 = 183; -pub const JS_ATOM_Iterator: _bindgen_ty_2 = 184; -pub const JS_ATOM_IteratorHelper: _bindgen_ty_2 = 185; -pub const JS_ATOM_IteratorWrap: _bindgen_ty_2 = 186; -pub const JS_ATOM_Map_Iterator: _bindgen_ty_2 = 187; -pub const JS_ATOM_Set_Iterator: _bindgen_ty_2 = 188; -pub const JS_ATOM_Array_Iterator: _bindgen_ty_2 = 189; -pub const JS_ATOM_String_Iterator: _bindgen_ty_2 = 190; -pub const JS_ATOM_RegExp_String_Iterator: _bindgen_ty_2 = 191; -pub const JS_ATOM_Generator: _bindgen_ty_2 = 192; -pub const JS_ATOM_Proxy: _bindgen_ty_2 = 193; -pub const JS_ATOM_Promise: _bindgen_ty_2 = 194; -pub const JS_ATOM_PromiseResolveFunction: _bindgen_ty_2 = 195; -pub const JS_ATOM_PromiseRejectFunction: _bindgen_ty_2 = 196; -pub const JS_ATOM_AsyncFunction: _bindgen_ty_2 = 197; -pub const JS_ATOM_AsyncFunctionResolve: _bindgen_ty_2 = 198; -pub const JS_ATOM_AsyncFunctionReject: _bindgen_ty_2 = 199; -pub const JS_ATOM_AsyncGeneratorFunction: _bindgen_ty_2 = 200; -pub const JS_ATOM_AsyncGenerator: _bindgen_ty_2 = 201; -pub const JS_ATOM_EvalError: _bindgen_ty_2 = 202; -pub const JS_ATOM_RangeError: _bindgen_ty_2 = 203; -pub const JS_ATOM_ReferenceError: _bindgen_ty_2 = 204; -pub const JS_ATOM_SyntaxError: _bindgen_ty_2 = 205; -pub const JS_ATOM_TypeError: _bindgen_ty_2 = 206; -pub const JS_ATOM_URIError: _bindgen_ty_2 = 207; -pub const JS_ATOM_InternalError: _bindgen_ty_2 = 208; -pub const JS_ATOM_CallSite: _bindgen_ty_2 = 209; -pub const JS_ATOM_Private_brand: _bindgen_ty_2 = 210; -pub const JS_ATOM_Symbol_toPrimitive: _bindgen_ty_2 = 211; -pub const JS_ATOM_Symbol_iterator: _bindgen_ty_2 = 212; -pub const JS_ATOM_Symbol_match: _bindgen_ty_2 = 213; -pub const JS_ATOM_Symbol_matchAll: _bindgen_ty_2 = 214; -pub const JS_ATOM_Symbol_replace: _bindgen_ty_2 = 215; -pub const JS_ATOM_Symbol_search: _bindgen_ty_2 = 216; -pub const JS_ATOM_Symbol_split: _bindgen_ty_2 = 217; -pub const JS_ATOM_Symbol_toStringTag: _bindgen_ty_2 = 218; -pub const JS_ATOM_Symbol_isConcatSpreadable: _bindgen_ty_2 = 219; -pub const JS_ATOM_Symbol_hasInstance: _bindgen_ty_2 = 220; -pub const JS_ATOM_Symbol_species: _bindgen_ty_2 = 221; -pub const JS_ATOM_Symbol_unscopables: _bindgen_ty_2 = 222; -pub const JS_ATOM_Symbol_asyncIterator: _bindgen_ty_2 = 223; -pub const JS_ATOM_END: _bindgen_ty_2 = 224; -pub type _bindgen_ty_2 = ::std::os::raw::c_uint; +pub const __JS_ATOM_NULL: _bindgen_ty_4 = 0; +pub const JS_ATOM_null: _bindgen_ty_4 = 1; +pub const JS_ATOM_false: _bindgen_ty_4 = 2; +pub const JS_ATOM_true: _bindgen_ty_4 = 3; +pub const JS_ATOM_if: _bindgen_ty_4 = 4; +pub const JS_ATOM_else: _bindgen_ty_4 = 5; +pub const JS_ATOM_return: _bindgen_ty_4 = 6; +pub const JS_ATOM_var: _bindgen_ty_4 = 7; +pub const JS_ATOM_this: _bindgen_ty_4 = 8; +pub const JS_ATOM_delete: _bindgen_ty_4 = 9; +pub const JS_ATOM_void: _bindgen_ty_4 = 10; +pub const JS_ATOM_typeof: _bindgen_ty_4 = 11; +pub const JS_ATOM_new: _bindgen_ty_4 = 12; +pub const JS_ATOM_in: _bindgen_ty_4 = 13; +pub const JS_ATOM_instanceof: _bindgen_ty_4 = 14; +pub const JS_ATOM_do: _bindgen_ty_4 = 15; +pub const JS_ATOM_while: _bindgen_ty_4 = 16; +pub const JS_ATOM_for: _bindgen_ty_4 = 17; +pub const JS_ATOM_break: _bindgen_ty_4 = 18; +pub const JS_ATOM_continue: _bindgen_ty_4 = 19; +pub const JS_ATOM_switch: _bindgen_ty_4 = 20; +pub const JS_ATOM_case: _bindgen_ty_4 = 21; +pub const JS_ATOM_default: _bindgen_ty_4 = 22; +pub const JS_ATOM_throw: _bindgen_ty_4 = 23; +pub const JS_ATOM_try: _bindgen_ty_4 = 24; +pub const JS_ATOM_catch: _bindgen_ty_4 = 25; +pub const JS_ATOM_finally: _bindgen_ty_4 = 26; +pub const JS_ATOM_function: _bindgen_ty_4 = 27; +pub const JS_ATOM_debugger: _bindgen_ty_4 = 28; +pub const JS_ATOM_with: _bindgen_ty_4 = 29; +pub const JS_ATOM_class: _bindgen_ty_4 = 30; +pub const JS_ATOM_const: _bindgen_ty_4 = 31; +pub const JS_ATOM_enum: _bindgen_ty_4 = 32; +pub const JS_ATOM_export: _bindgen_ty_4 = 33; +pub const JS_ATOM_extends: _bindgen_ty_4 = 34; +pub const JS_ATOM_import: _bindgen_ty_4 = 35; +pub const JS_ATOM_super: _bindgen_ty_4 = 36; +pub const JS_ATOM_implements: _bindgen_ty_4 = 37; +pub const JS_ATOM_interface: _bindgen_ty_4 = 38; +pub const JS_ATOM_let: _bindgen_ty_4 = 39; +pub const JS_ATOM_package: _bindgen_ty_4 = 40; +pub const JS_ATOM_private: _bindgen_ty_4 = 41; +pub const JS_ATOM_protected: _bindgen_ty_4 = 42; +pub const JS_ATOM_public: _bindgen_ty_4 = 43; +pub const JS_ATOM_static: _bindgen_ty_4 = 44; +pub const JS_ATOM_yield: _bindgen_ty_4 = 45; +pub const JS_ATOM_await: _bindgen_ty_4 = 46; +pub const JS_ATOM_empty_string: _bindgen_ty_4 = 47; +pub const JS_ATOM_keys: _bindgen_ty_4 = 48; +pub const JS_ATOM_size: _bindgen_ty_4 = 49; +pub const JS_ATOM_length: _bindgen_ty_4 = 50; +pub const JS_ATOM_message: _bindgen_ty_4 = 51; +pub const JS_ATOM_cause: _bindgen_ty_4 = 52; +pub const JS_ATOM_errors: _bindgen_ty_4 = 53; +pub const JS_ATOM_stack: _bindgen_ty_4 = 54; +pub const JS_ATOM_name: _bindgen_ty_4 = 55; +pub const JS_ATOM_toString: _bindgen_ty_4 = 56; +pub const JS_ATOM_toLocaleString: _bindgen_ty_4 = 57; +pub const JS_ATOM_valueOf: _bindgen_ty_4 = 58; +pub const JS_ATOM_eval: _bindgen_ty_4 = 59; +pub const JS_ATOM_prototype: _bindgen_ty_4 = 60; +pub const JS_ATOM_constructor: _bindgen_ty_4 = 61; +pub const JS_ATOM_configurable: _bindgen_ty_4 = 62; +pub const JS_ATOM_writable: _bindgen_ty_4 = 63; +pub const JS_ATOM_enumerable: _bindgen_ty_4 = 64; +pub const JS_ATOM_value: _bindgen_ty_4 = 65; +pub const JS_ATOM_get: _bindgen_ty_4 = 66; +pub const JS_ATOM_set: _bindgen_ty_4 = 67; +pub const JS_ATOM_of: _bindgen_ty_4 = 68; +pub const JS_ATOM___proto__: _bindgen_ty_4 = 69; +pub const JS_ATOM_undefined: _bindgen_ty_4 = 70; +pub const JS_ATOM_number: _bindgen_ty_4 = 71; +pub const JS_ATOM_boolean: _bindgen_ty_4 = 72; +pub const JS_ATOM_string: _bindgen_ty_4 = 73; +pub const JS_ATOM_object: _bindgen_ty_4 = 74; +pub const JS_ATOM_symbol: _bindgen_ty_4 = 75; +pub const JS_ATOM_integer: _bindgen_ty_4 = 76; +pub const JS_ATOM_unknown: _bindgen_ty_4 = 77; +pub const JS_ATOM_arguments: _bindgen_ty_4 = 78; +pub const JS_ATOM_callee: _bindgen_ty_4 = 79; +pub const JS_ATOM_caller: _bindgen_ty_4 = 80; +pub const JS_ATOM__eval_: _bindgen_ty_4 = 81; +pub const JS_ATOM__ret_: _bindgen_ty_4 = 82; +pub const JS_ATOM__var_: _bindgen_ty_4 = 83; +pub const JS_ATOM__arg_var_: _bindgen_ty_4 = 84; +pub const JS_ATOM__with_: _bindgen_ty_4 = 85; +pub const JS_ATOM_lastIndex: _bindgen_ty_4 = 86; +pub const JS_ATOM_target: _bindgen_ty_4 = 87; +pub const JS_ATOM_index: _bindgen_ty_4 = 88; +pub const JS_ATOM_input: _bindgen_ty_4 = 89; +pub const JS_ATOM_defineProperties: _bindgen_ty_4 = 90; +pub const JS_ATOM_apply: _bindgen_ty_4 = 91; +pub const JS_ATOM_join: _bindgen_ty_4 = 92; +pub const JS_ATOM_concat: _bindgen_ty_4 = 93; +pub const JS_ATOM_split: _bindgen_ty_4 = 94; +pub const JS_ATOM_construct: _bindgen_ty_4 = 95; +pub const JS_ATOM_getPrototypeOf: _bindgen_ty_4 = 96; +pub const JS_ATOM_setPrototypeOf: _bindgen_ty_4 = 97; +pub const JS_ATOM_isExtensible: _bindgen_ty_4 = 98; +pub const JS_ATOM_preventExtensions: _bindgen_ty_4 = 99; +pub const JS_ATOM_has: _bindgen_ty_4 = 100; +pub const JS_ATOM_deleteProperty: _bindgen_ty_4 = 101; +pub const JS_ATOM_defineProperty: _bindgen_ty_4 = 102; +pub const JS_ATOM_getOwnPropertyDescriptor: _bindgen_ty_4 = 103; +pub const JS_ATOM_ownKeys: _bindgen_ty_4 = 104; +pub const JS_ATOM_add: _bindgen_ty_4 = 105; +pub const JS_ATOM_done: _bindgen_ty_4 = 106; +pub const JS_ATOM_next: _bindgen_ty_4 = 107; +pub const JS_ATOM_values: _bindgen_ty_4 = 108; +pub const JS_ATOM_source: _bindgen_ty_4 = 109; +pub const JS_ATOM_flags: _bindgen_ty_4 = 110; +pub const JS_ATOM_global: _bindgen_ty_4 = 111; +pub const JS_ATOM_unicode: _bindgen_ty_4 = 112; +pub const JS_ATOM_raw: _bindgen_ty_4 = 113; +pub const JS_ATOM_new_target: _bindgen_ty_4 = 114; +pub const JS_ATOM_this_active_func: _bindgen_ty_4 = 115; +pub const JS_ATOM_home_object: _bindgen_ty_4 = 116; +pub const JS_ATOM_computed_field: _bindgen_ty_4 = 117; +pub const JS_ATOM_static_computed_field: _bindgen_ty_4 = 118; +pub const JS_ATOM_class_fields_init: _bindgen_ty_4 = 119; +pub const JS_ATOM_brand: _bindgen_ty_4 = 120; +pub const JS_ATOM_hash_constructor: _bindgen_ty_4 = 121; +pub const JS_ATOM_as: _bindgen_ty_4 = 122; +pub const JS_ATOM_from: _bindgen_ty_4 = 123; +pub const JS_ATOM_meta: _bindgen_ty_4 = 124; +pub const JS_ATOM__default_: _bindgen_ty_4 = 125; +pub const JS_ATOM__star_: _bindgen_ty_4 = 126; +pub const JS_ATOM_Module: _bindgen_ty_4 = 127; +pub const JS_ATOM_then: _bindgen_ty_4 = 128; +pub const JS_ATOM_resolve: _bindgen_ty_4 = 129; +pub const JS_ATOM_reject: _bindgen_ty_4 = 130; +pub const JS_ATOM_promise: _bindgen_ty_4 = 131; +pub const JS_ATOM_proxy: _bindgen_ty_4 = 132; +pub const JS_ATOM_revoke: _bindgen_ty_4 = 133; +pub const JS_ATOM_async: _bindgen_ty_4 = 134; +pub const JS_ATOM_exec: _bindgen_ty_4 = 135; +pub const JS_ATOM_groups: _bindgen_ty_4 = 136; +pub const JS_ATOM_indices: _bindgen_ty_4 = 137; +pub const JS_ATOM_status: _bindgen_ty_4 = 138; +pub const JS_ATOM_reason: _bindgen_ty_4 = 139; +pub const JS_ATOM_globalThis: _bindgen_ty_4 = 140; +pub const JS_ATOM_bigint: _bindgen_ty_4 = 141; +pub const JS_ATOM_not_equal: _bindgen_ty_4 = 142; +pub const JS_ATOM_timed_out: _bindgen_ty_4 = 143; +pub const JS_ATOM_ok: _bindgen_ty_4 = 144; +pub const JS_ATOM_toJSON: _bindgen_ty_4 = 145; +pub const JS_ATOM_maxByteLength: _bindgen_ty_4 = 146; +pub const JS_ATOM_Object: _bindgen_ty_4 = 147; +pub const JS_ATOM_Array: _bindgen_ty_4 = 148; +pub const JS_ATOM_Error: _bindgen_ty_4 = 149; +pub const JS_ATOM_Number: _bindgen_ty_4 = 150; +pub const JS_ATOM_String: _bindgen_ty_4 = 151; +pub const JS_ATOM_Boolean: _bindgen_ty_4 = 152; +pub const JS_ATOM_Symbol: _bindgen_ty_4 = 153; +pub const JS_ATOM_Arguments: _bindgen_ty_4 = 154; +pub const JS_ATOM_Math: _bindgen_ty_4 = 155; +pub const JS_ATOM_JSON: _bindgen_ty_4 = 156; +pub const JS_ATOM_Date: _bindgen_ty_4 = 157; +pub const JS_ATOM_Function: _bindgen_ty_4 = 158; +pub const JS_ATOM_GeneratorFunction: _bindgen_ty_4 = 159; +pub const JS_ATOM_ForInIterator: _bindgen_ty_4 = 160; +pub const JS_ATOM_RegExp: _bindgen_ty_4 = 161; +pub const JS_ATOM_ArrayBuffer: _bindgen_ty_4 = 162; +pub const JS_ATOM_SharedArrayBuffer: _bindgen_ty_4 = 163; +pub const JS_ATOM_Uint8ClampedArray: _bindgen_ty_4 = 164; +pub const JS_ATOM_Int8Array: _bindgen_ty_4 = 165; +pub const JS_ATOM_Uint8Array: _bindgen_ty_4 = 166; +pub const JS_ATOM_Int16Array: _bindgen_ty_4 = 167; +pub const JS_ATOM_Uint16Array: _bindgen_ty_4 = 168; +pub const JS_ATOM_Int32Array: _bindgen_ty_4 = 169; +pub const JS_ATOM_Uint32Array: _bindgen_ty_4 = 170; +pub const JS_ATOM_BigInt64Array: _bindgen_ty_4 = 171; +pub const JS_ATOM_BigUint64Array: _bindgen_ty_4 = 172; +pub const JS_ATOM_Float16Array: _bindgen_ty_4 = 173; +pub const JS_ATOM_Float32Array: _bindgen_ty_4 = 174; +pub const JS_ATOM_Float64Array: _bindgen_ty_4 = 175; +pub const JS_ATOM_DataView: _bindgen_ty_4 = 176; +pub const JS_ATOM_BigInt: _bindgen_ty_4 = 177; +pub const JS_ATOM_WeakRef: _bindgen_ty_4 = 178; +pub const JS_ATOM_FinalizationRegistry: _bindgen_ty_4 = 179; +pub const JS_ATOM_Map: _bindgen_ty_4 = 180; +pub const JS_ATOM_Set: _bindgen_ty_4 = 181; +pub const JS_ATOM_WeakMap: _bindgen_ty_4 = 182; +pub const JS_ATOM_WeakSet: _bindgen_ty_4 = 183; +pub const JS_ATOM_Iterator: _bindgen_ty_4 = 184; +pub const JS_ATOM_IteratorHelper: _bindgen_ty_4 = 185; +pub const JS_ATOM_IteratorWrap: _bindgen_ty_4 = 186; +pub const JS_ATOM_Map_Iterator: _bindgen_ty_4 = 187; +pub const JS_ATOM_Set_Iterator: _bindgen_ty_4 = 188; +pub const JS_ATOM_Array_Iterator: _bindgen_ty_4 = 189; +pub const JS_ATOM_String_Iterator: _bindgen_ty_4 = 190; +pub const JS_ATOM_RegExp_String_Iterator: _bindgen_ty_4 = 191; +pub const JS_ATOM_Generator: _bindgen_ty_4 = 192; +pub const JS_ATOM_Proxy: _bindgen_ty_4 = 193; +pub const JS_ATOM_Promise: _bindgen_ty_4 = 194; +pub const JS_ATOM_PromiseResolveFunction: _bindgen_ty_4 = 195; +pub const JS_ATOM_PromiseRejectFunction: _bindgen_ty_4 = 196; +pub const JS_ATOM_AsyncFunction: _bindgen_ty_4 = 197; +pub const JS_ATOM_AsyncFunctionResolve: _bindgen_ty_4 = 198; +pub const JS_ATOM_AsyncFunctionReject: _bindgen_ty_4 = 199; +pub const JS_ATOM_AsyncGeneratorFunction: _bindgen_ty_4 = 200; +pub const JS_ATOM_AsyncGenerator: _bindgen_ty_4 = 201; +pub const JS_ATOM_EvalError: _bindgen_ty_4 = 202; +pub const JS_ATOM_RangeError: _bindgen_ty_4 = 203; +pub const JS_ATOM_ReferenceError: _bindgen_ty_4 = 204; +pub const JS_ATOM_SyntaxError: _bindgen_ty_4 = 205; +pub const JS_ATOM_TypeError: _bindgen_ty_4 = 206; +pub const JS_ATOM_URIError: _bindgen_ty_4 = 207; +pub const JS_ATOM_InternalError: _bindgen_ty_4 = 208; +pub const JS_ATOM_CallSite: _bindgen_ty_4 = 209; +pub const JS_ATOM_Private_brand: _bindgen_ty_4 = 210; +pub const JS_ATOM_Symbol_toPrimitive: _bindgen_ty_4 = 211; +pub const JS_ATOM_Symbol_iterator: _bindgen_ty_4 = 212; +pub const JS_ATOM_Symbol_match: _bindgen_ty_4 = 213; +pub const JS_ATOM_Symbol_matchAll: _bindgen_ty_4 = 214; +pub const JS_ATOM_Symbol_replace: _bindgen_ty_4 = 215; +pub const JS_ATOM_Symbol_search: _bindgen_ty_4 = 216; +pub const JS_ATOM_Symbol_split: _bindgen_ty_4 = 217; +pub const JS_ATOM_Symbol_toStringTag: _bindgen_ty_4 = 218; +pub const JS_ATOM_Symbol_isConcatSpreadable: _bindgen_ty_4 = 219; +pub const JS_ATOM_Symbol_hasInstance: _bindgen_ty_4 = 220; +pub const JS_ATOM_Symbol_species: _bindgen_ty_4 = 221; +pub const JS_ATOM_Symbol_unscopables: _bindgen_ty_4 = 222; +pub const JS_ATOM_Symbol_asyncIterator: _bindgen_ty_4 = 223; +pub const JS_ATOM_END: _bindgen_ty_4 = 224; +pub type _bindgen_ty_4 = ::std::os::raw::c_uint; diff --git a/sys/src/bindings/aarch64-unknown-linux-musl.rs b/sys/src/bindings/aarch64-unknown-linux-musl.rs index c7152add..9b97fb2c 100644 --- a/sys/src/bindings/aarch64-unknown-linux-musl.rs +++ b/sys/src/bindings/aarch64-unknown-linux-musl.rs @@ -85,22 +85,22 @@ pub struct JSClass { } pub type JSClassID = u32; pub type JSAtom = u32; -pub const JS_TAG_FIRST: _bindgen_ty_1 = -9; -pub const JS_TAG_BIG_INT: _bindgen_ty_1 = -9; -pub const JS_TAG_SYMBOL: _bindgen_ty_1 = -8; -pub const JS_TAG_STRING: _bindgen_ty_1 = -7; -pub const JS_TAG_MODULE: _bindgen_ty_1 = -3; -pub const JS_TAG_FUNCTION_BYTECODE: _bindgen_ty_1 = -2; -pub const JS_TAG_OBJECT: _bindgen_ty_1 = -1; -pub const JS_TAG_INT: _bindgen_ty_1 = 0; -pub const JS_TAG_BOOL: _bindgen_ty_1 = 1; -pub const JS_TAG_NULL: _bindgen_ty_1 = 2; -pub const JS_TAG_UNDEFINED: _bindgen_ty_1 = 3; -pub const JS_TAG_UNINITIALIZED: _bindgen_ty_1 = 4; -pub const JS_TAG_CATCH_OFFSET: _bindgen_ty_1 = 5; -pub const JS_TAG_EXCEPTION: _bindgen_ty_1 = 6; -pub const JS_TAG_FLOAT64: _bindgen_ty_1 = 7; -pub type _bindgen_ty_1 = ::std::os::raw::c_int; +pub const JS_TAG_FIRST: _bindgen_ty_3 = -9; +pub const JS_TAG_BIG_INT: _bindgen_ty_3 = -9; +pub const JS_TAG_SYMBOL: _bindgen_ty_3 = -8; +pub const JS_TAG_STRING: _bindgen_ty_3 = -7; +pub const JS_TAG_MODULE: _bindgen_ty_3 = -3; +pub const JS_TAG_FUNCTION_BYTECODE: _bindgen_ty_3 = -2; +pub const JS_TAG_OBJECT: _bindgen_ty_3 = -1; +pub const JS_TAG_INT: _bindgen_ty_3 = 0; +pub const JS_TAG_BOOL: _bindgen_ty_3 = 1; +pub const JS_TAG_NULL: _bindgen_ty_3 = 2; +pub const JS_TAG_UNDEFINED: _bindgen_ty_3 = 3; +pub const JS_TAG_UNINITIALIZED: _bindgen_ty_3 = 4; +pub const JS_TAG_CATCH_OFFSET: _bindgen_ty_3 = 5; +pub const JS_TAG_EXCEPTION: _bindgen_ty_3 = 6; +pub const JS_TAG_FLOAT64: _bindgen_ty_3 = 7; +pub type _bindgen_ty_3 = ::std::os::raw::c_int; #[repr(C)] #[derive(Copy, Clone)] pub union JSValueUnion { @@ -1278,6 +1278,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1344,6 +1350,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1421,6 +1430,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1434,6 +1446,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1443,6 +1461,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1529,6 +1550,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1870,6 +1897,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, @@ -2751,229 +2781,229 @@ extern "C" { extern "C" { pub fn js_std_cmd(cmd: ::std::os::raw::c_int, ...) -> usize; } -pub const __JS_ATOM_NULL: _bindgen_ty_2 = 0; -pub const JS_ATOM_null: _bindgen_ty_2 = 1; -pub const JS_ATOM_false: _bindgen_ty_2 = 2; -pub const JS_ATOM_true: _bindgen_ty_2 = 3; -pub const JS_ATOM_if: _bindgen_ty_2 = 4; -pub const JS_ATOM_else: _bindgen_ty_2 = 5; -pub const JS_ATOM_return: _bindgen_ty_2 = 6; -pub const JS_ATOM_var: _bindgen_ty_2 = 7; -pub const JS_ATOM_this: _bindgen_ty_2 = 8; -pub const JS_ATOM_delete: _bindgen_ty_2 = 9; -pub const JS_ATOM_void: _bindgen_ty_2 = 10; -pub const JS_ATOM_typeof: _bindgen_ty_2 = 11; -pub const JS_ATOM_new: _bindgen_ty_2 = 12; -pub const JS_ATOM_in: _bindgen_ty_2 = 13; -pub const JS_ATOM_instanceof: _bindgen_ty_2 = 14; -pub const JS_ATOM_do: _bindgen_ty_2 = 15; -pub const JS_ATOM_while: _bindgen_ty_2 = 16; -pub const JS_ATOM_for: _bindgen_ty_2 = 17; -pub const JS_ATOM_break: _bindgen_ty_2 = 18; -pub const JS_ATOM_continue: _bindgen_ty_2 = 19; -pub const JS_ATOM_switch: _bindgen_ty_2 = 20; -pub const JS_ATOM_case: _bindgen_ty_2 = 21; -pub const JS_ATOM_default: _bindgen_ty_2 = 22; -pub const JS_ATOM_throw: _bindgen_ty_2 = 23; -pub const JS_ATOM_try: _bindgen_ty_2 = 24; -pub const JS_ATOM_catch: _bindgen_ty_2 = 25; -pub const JS_ATOM_finally: _bindgen_ty_2 = 26; -pub const JS_ATOM_function: _bindgen_ty_2 = 27; -pub const JS_ATOM_debugger: _bindgen_ty_2 = 28; -pub const JS_ATOM_with: _bindgen_ty_2 = 29; -pub const JS_ATOM_class: _bindgen_ty_2 = 30; -pub const JS_ATOM_const: _bindgen_ty_2 = 31; -pub const JS_ATOM_enum: _bindgen_ty_2 = 32; -pub const JS_ATOM_export: _bindgen_ty_2 = 33; -pub const JS_ATOM_extends: _bindgen_ty_2 = 34; -pub const JS_ATOM_import: _bindgen_ty_2 = 35; -pub const JS_ATOM_super: _bindgen_ty_2 = 36; -pub const JS_ATOM_implements: _bindgen_ty_2 = 37; -pub const JS_ATOM_interface: _bindgen_ty_2 = 38; -pub const JS_ATOM_let: _bindgen_ty_2 = 39; -pub const JS_ATOM_package: _bindgen_ty_2 = 40; -pub const JS_ATOM_private: _bindgen_ty_2 = 41; -pub const JS_ATOM_protected: _bindgen_ty_2 = 42; -pub const JS_ATOM_public: _bindgen_ty_2 = 43; -pub const JS_ATOM_static: _bindgen_ty_2 = 44; -pub const JS_ATOM_yield: _bindgen_ty_2 = 45; -pub const JS_ATOM_await: _bindgen_ty_2 = 46; -pub const JS_ATOM_empty_string: _bindgen_ty_2 = 47; -pub const JS_ATOM_keys: _bindgen_ty_2 = 48; -pub const JS_ATOM_size: _bindgen_ty_2 = 49; -pub const JS_ATOM_length: _bindgen_ty_2 = 50; -pub const JS_ATOM_message: _bindgen_ty_2 = 51; -pub const JS_ATOM_cause: _bindgen_ty_2 = 52; -pub const JS_ATOM_errors: _bindgen_ty_2 = 53; -pub const JS_ATOM_stack: _bindgen_ty_2 = 54; -pub const JS_ATOM_name: _bindgen_ty_2 = 55; -pub const JS_ATOM_toString: _bindgen_ty_2 = 56; -pub const JS_ATOM_toLocaleString: _bindgen_ty_2 = 57; -pub const JS_ATOM_valueOf: _bindgen_ty_2 = 58; -pub const JS_ATOM_eval: _bindgen_ty_2 = 59; -pub const JS_ATOM_prototype: _bindgen_ty_2 = 60; -pub const JS_ATOM_constructor: _bindgen_ty_2 = 61; -pub const JS_ATOM_configurable: _bindgen_ty_2 = 62; -pub const JS_ATOM_writable: _bindgen_ty_2 = 63; -pub const JS_ATOM_enumerable: _bindgen_ty_2 = 64; -pub const JS_ATOM_value: _bindgen_ty_2 = 65; -pub const JS_ATOM_get: _bindgen_ty_2 = 66; -pub const JS_ATOM_set: _bindgen_ty_2 = 67; -pub const JS_ATOM_of: _bindgen_ty_2 = 68; -pub const JS_ATOM___proto__: _bindgen_ty_2 = 69; -pub const JS_ATOM_undefined: _bindgen_ty_2 = 70; -pub const JS_ATOM_number: _bindgen_ty_2 = 71; -pub const JS_ATOM_boolean: _bindgen_ty_2 = 72; -pub const JS_ATOM_string: _bindgen_ty_2 = 73; -pub const JS_ATOM_object: _bindgen_ty_2 = 74; -pub const JS_ATOM_symbol: _bindgen_ty_2 = 75; -pub const JS_ATOM_integer: _bindgen_ty_2 = 76; -pub const JS_ATOM_unknown: _bindgen_ty_2 = 77; -pub const JS_ATOM_arguments: _bindgen_ty_2 = 78; -pub const JS_ATOM_callee: _bindgen_ty_2 = 79; -pub const JS_ATOM_caller: _bindgen_ty_2 = 80; -pub const JS_ATOM__eval_: _bindgen_ty_2 = 81; -pub const JS_ATOM__ret_: _bindgen_ty_2 = 82; -pub const JS_ATOM__var_: _bindgen_ty_2 = 83; -pub const JS_ATOM__arg_var_: _bindgen_ty_2 = 84; -pub const JS_ATOM__with_: _bindgen_ty_2 = 85; -pub const JS_ATOM_lastIndex: _bindgen_ty_2 = 86; -pub const JS_ATOM_target: _bindgen_ty_2 = 87; -pub const JS_ATOM_index: _bindgen_ty_2 = 88; -pub const JS_ATOM_input: _bindgen_ty_2 = 89; -pub const JS_ATOM_defineProperties: _bindgen_ty_2 = 90; -pub const JS_ATOM_apply: _bindgen_ty_2 = 91; -pub const JS_ATOM_join: _bindgen_ty_2 = 92; -pub const JS_ATOM_concat: _bindgen_ty_2 = 93; -pub const JS_ATOM_split: _bindgen_ty_2 = 94; -pub const JS_ATOM_construct: _bindgen_ty_2 = 95; -pub const JS_ATOM_getPrototypeOf: _bindgen_ty_2 = 96; -pub const JS_ATOM_setPrototypeOf: _bindgen_ty_2 = 97; -pub const JS_ATOM_isExtensible: _bindgen_ty_2 = 98; -pub const JS_ATOM_preventExtensions: _bindgen_ty_2 = 99; -pub const JS_ATOM_has: _bindgen_ty_2 = 100; -pub const JS_ATOM_deleteProperty: _bindgen_ty_2 = 101; -pub const JS_ATOM_defineProperty: _bindgen_ty_2 = 102; -pub const JS_ATOM_getOwnPropertyDescriptor: _bindgen_ty_2 = 103; -pub const JS_ATOM_ownKeys: _bindgen_ty_2 = 104; -pub const JS_ATOM_add: _bindgen_ty_2 = 105; -pub const JS_ATOM_done: _bindgen_ty_2 = 106; -pub const JS_ATOM_next: _bindgen_ty_2 = 107; -pub const JS_ATOM_values: _bindgen_ty_2 = 108; -pub const JS_ATOM_source: _bindgen_ty_2 = 109; -pub const JS_ATOM_flags: _bindgen_ty_2 = 110; -pub const JS_ATOM_global: _bindgen_ty_2 = 111; -pub const JS_ATOM_unicode: _bindgen_ty_2 = 112; -pub const JS_ATOM_raw: _bindgen_ty_2 = 113; -pub const JS_ATOM_new_target: _bindgen_ty_2 = 114; -pub const JS_ATOM_this_active_func: _bindgen_ty_2 = 115; -pub const JS_ATOM_home_object: _bindgen_ty_2 = 116; -pub const JS_ATOM_computed_field: _bindgen_ty_2 = 117; -pub const JS_ATOM_static_computed_field: _bindgen_ty_2 = 118; -pub const JS_ATOM_class_fields_init: _bindgen_ty_2 = 119; -pub const JS_ATOM_brand: _bindgen_ty_2 = 120; -pub const JS_ATOM_hash_constructor: _bindgen_ty_2 = 121; -pub const JS_ATOM_as: _bindgen_ty_2 = 122; -pub const JS_ATOM_from: _bindgen_ty_2 = 123; -pub const JS_ATOM_meta: _bindgen_ty_2 = 124; -pub const JS_ATOM__default_: _bindgen_ty_2 = 125; -pub const JS_ATOM__star_: _bindgen_ty_2 = 126; -pub const JS_ATOM_Module: _bindgen_ty_2 = 127; -pub const JS_ATOM_then: _bindgen_ty_2 = 128; -pub const JS_ATOM_resolve: _bindgen_ty_2 = 129; -pub const JS_ATOM_reject: _bindgen_ty_2 = 130; -pub const JS_ATOM_promise: _bindgen_ty_2 = 131; -pub const JS_ATOM_proxy: _bindgen_ty_2 = 132; -pub const JS_ATOM_revoke: _bindgen_ty_2 = 133; -pub const JS_ATOM_async: _bindgen_ty_2 = 134; -pub const JS_ATOM_exec: _bindgen_ty_2 = 135; -pub const JS_ATOM_groups: _bindgen_ty_2 = 136; -pub const JS_ATOM_indices: _bindgen_ty_2 = 137; -pub const JS_ATOM_status: _bindgen_ty_2 = 138; -pub const JS_ATOM_reason: _bindgen_ty_2 = 139; -pub const JS_ATOM_globalThis: _bindgen_ty_2 = 140; -pub const JS_ATOM_bigint: _bindgen_ty_2 = 141; -pub const JS_ATOM_not_equal: _bindgen_ty_2 = 142; -pub const JS_ATOM_timed_out: _bindgen_ty_2 = 143; -pub const JS_ATOM_ok: _bindgen_ty_2 = 144; -pub const JS_ATOM_toJSON: _bindgen_ty_2 = 145; -pub const JS_ATOM_maxByteLength: _bindgen_ty_2 = 146; -pub const JS_ATOM_Object: _bindgen_ty_2 = 147; -pub const JS_ATOM_Array: _bindgen_ty_2 = 148; -pub const JS_ATOM_Error: _bindgen_ty_2 = 149; -pub const JS_ATOM_Number: _bindgen_ty_2 = 150; -pub const JS_ATOM_String: _bindgen_ty_2 = 151; -pub const JS_ATOM_Boolean: _bindgen_ty_2 = 152; -pub const JS_ATOM_Symbol: _bindgen_ty_2 = 153; -pub const JS_ATOM_Arguments: _bindgen_ty_2 = 154; -pub const JS_ATOM_Math: _bindgen_ty_2 = 155; -pub const JS_ATOM_JSON: _bindgen_ty_2 = 156; -pub const JS_ATOM_Date: _bindgen_ty_2 = 157; -pub const JS_ATOM_Function: _bindgen_ty_2 = 158; -pub const JS_ATOM_GeneratorFunction: _bindgen_ty_2 = 159; -pub const JS_ATOM_ForInIterator: _bindgen_ty_2 = 160; -pub const JS_ATOM_RegExp: _bindgen_ty_2 = 161; -pub const JS_ATOM_ArrayBuffer: _bindgen_ty_2 = 162; -pub const JS_ATOM_SharedArrayBuffer: _bindgen_ty_2 = 163; -pub const JS_ATOM_Uint8ClampedArray: _bindgen_ty_2 = 164; -pub const JS_ATOM_Int8Array: _bindgen_ty_2 = 165; -pub const JS_ATOM_Uint8Array: _bindgen_ty_2 = 166; -pub const JS_ATOM_Int16Array: _bindgen_ty_2 = 167; -pub const JS_ATOM_Uint16Array: _bindgen_ty_2 = 168; -pub const JS_ATOM_Int32Array: _bindgen_ty_2 = 169; -pub const JS_ATOM_Uint32Array: _bindgen_ty_2 = 170; -pub const JS_ATOM_BigInt64Array: _bindgen_ty_2 = 171; -pub const JS_ATOM_BigUint64Array: _bindgen_ty_2 = 172; -pub const JS_ATOM_Float16Array: _bindgen_ty_2 = 173; -pub const JS_ATOM_Float32Array: _bindgen_ty_2 = 174; -pub const JS_ATOM_Float64Array: _bindgen_ty_2 = 175; -pub const JS_ATOM_DataView: _bindgen_ty_2 = 176; -pub const JS_ATOM_BigInt: _bindgen_ty_2 = 177; -pub const JS_ATOM_WeakRef: _bindgen_ty_2 = 178; -pub const JS_ATOM_FinalizationRegistry: _bindgen_ty_2 = 179; -pub const JS_ATOM_Map: _bindgen_ty_2 = 180; -pub const JS_ATOM_Set: _bindgen_ty_2 = 181; -pub const JS_ATOM_WeakMap: _bindgen_ty_2 = 182; -pub const JS_ATOM_WeakSet: _bindgen_ty_2 = 183; -pub const JS_ATOM_Iterator: _bindgen_ty_2 = 184; -pub const JS_ATOM_IteratorHelper: _bindgen_ty_2 = 185; -pub const JS_ATOM_IteratorWrap: _bindgen_ty_2 = 186; -pub const JS_ATOM_Map_Iterator: _bindgen_ty_2 = 187; -pub const JS_ATOM_Set_Iterator: _bindgen_ty_2 = 188; -pub const JS_ATOM_Array_Iterator: _bindgen_ty_2 = 189; -pub const JS_ATOM_String_Iterator: _bindgen_ty_2 = 190; -pub const JS_ATOM_RegExp_String_Iterator: _bindgen_ty_2 = 191; -pub const JS_ATOM_Generator: _bindgen_ty_2 = 192; -pub const JS_ATOM_Proxy: _bindgen_ty_2 = 193; -pub const JS_ATOM_Promise: _bindgen_ty_2 = 194; -pub const JS_ATOM_PromiseResolveFunction: _bindgen_ty_2 = 195; -pub const JS_ATOM_PromiseRejectFunction: _bindgen_ty_2 = 196; -pub const JS_ATOM_AsyncFunction: _bindgen_ty_2 = 197; -pub const JS_ATOM_AsyncFunctionResolve: _bindgen_ty_2 = 198; -pub const JS_ATOM_AsyncFunctionReject: _bindgen_ty_2 = 199; -pub const JS_ATOM_AsyncGeneratorFunction: _bindgen_ty_2 = 200; -pub const JS_ATOM_AsyncGenerator: _bindgen_ty_2 = 201; -pub const JS_ATOM_EvalError: _bindgen_ty_2 = 202; -pub const JS_ATOM_RangeError: _bindgen_ty_2 = 203; -pub const JS_ATOM_ReferenceError: _bindgen_ty_2 = 204; -pub const JS_ATOM_SyntaxError: _bindgen_ty_2 = 205; -pub const JS_ATOM_TypeError: _bindgen_ty_2 = 206; -pub const JS_ATOM_URIError: _bindgen_ty_2 = 207; -pub const JS_ATOM_InternalError: _bindgen_ty_2 = 208; -pub const JS_ATOM_CallSite: _bindgen_ty_2 = 209; -pub const JS_ATOM_Private_brand: _bindgen_ty_2 = 210; -pub const JS_ATOM_Symbol_toPrimitive: _bindgen_ty_2 = 211; -pub const JS_ATOM_Symbol_iterator: _bindgen_ty_2 = 212; -pub const JS_ATOM_Symbol_match: _bindgen_ty_2 = 213; -pub const JS_ATOM_Symbol_matchAll: _bindgen_ty_2 = 214; -pub const JS_ATOM_Symbol_replace: _bindgen_ty_2 = 215; -pub const JS_ATOM_Symbol_search: _bindgen_ty_2 = 216; -pub const JS_ATOM_Symbol_split: _bindgen_ty_2 = 217; -pub const JS_ATOM_Symbol_toStringTag: _bindgen_ty_2 = 218; -pub const JS_ATOM_Symbol_isConcatSpreadable: _bindgen_ty_2 = 219; -pub const JS_ATOM_Symbol_hasInstance: _bindgen_ty_2 = 220; -pub const JS_ATOM_Symbol_species: _bindgen_ty_2 = 221; -pub const JS_ATOM_Symbol_unscopables: _bindgen_ty_2 = 222; -pub const JS_ATOM_Symbol_asyncIterator: _bindgen_ty_2 = 223; -pub const JS_ATOM_END: _bindgen_ty_2 = 224; -pub type _bindgen_ty_2 = ::std::os::raw::c_uint; +pub const __JS_ATOM_NULL: _bindgen_ty_4 = 0; +pub const JS_ATOM_null: _bindgen_ty_4 = 1; +pub const JS_ATOM_false: _bindgen_ty_4 = 2; +pub const JS_ATOM_true: _bindgen_ty_4 = 3; +pub const JS_ATOM_if: _bindgen_ty_4 = 4; +pub const JS_ATOM_else: _bindgen_ty_4 = 5; +pub const JS_ATOM_return: _bindgen_ty_4 = 6; +pub const JS_ATOM_var: _bindgen_ty_4 = 7; +pub const JS_ATOM_this: _bindgen_ty_4 = 8; +pub const JS_ATOM_delete: _bindgen_ty_4 = 9; +pub const JS_ATOM_void: _bindgen_ty_4 = 10; +pub const JS_ATOM_typeof: _bindgen_ty_4 = 11; +pub const JS_ATOM_new: _bindgen_ty_4 = 12; +pub const JS_ATOM_in: _bindgen_ty_4 = 13; +pub const JS_ATOM_instanceof: _bindgen_ty_4 = 14; +pub const JS_ATOM_do: _bindgen_ty_4 = 15; +pub const JS_ATOM_while: _bindgen_ty_4 = 16; +pub const JS_ATOM_for: _bindgen_ty_4 = 17; +pub const JS_ATOM_break: _bindgen_ty_4 = 18; +pub const JS_ATOM_continue: _bindgen_ty_4 = 19; +pub const JS_ATOM_switch: _bindgen_ty_4 = 20; +pub const JS_ATOM_case: _bindgen_ty_4 = 21; +pub const JS_ATOM_default: _bindgen_ty_4 = 22; +pub const JS_ATOM_throw: _bindgen_ty_4 = 23; +pub const JS_ATOM_try: _bindgen_ty_4 = 24; +pub const JS_ATOM_catch: _bindgen_ty_4 = 25; +pub const JS_ATOM_finally: _bindgen_ty_4 = 26; +pub const JS_ATOM_function: _bindgen_ty_4 = 27; +pub const JS_ATOM_debugger: _bindgen_ty_4 = 28; +pub const JS_ATOM_with: _bindgen_ty_4 = 29; +pub const JS_ATOM_class: _bindgen_ty_4 = 30; +pub const JS_ATOM_const: _bindgen_ty_4 = 31; +pub const JS_ATOM_enum: _bindgen_ty_4 = 32; +pub const JS_ATOM_export: _bindgen_ty_4 = 33; +pub const JS_ATOM_extends: _bindgen_ty_4 = 34; +pub const JS_ATOM_import: _bindgen_ty_4 = 35; +pub const JS_ATOM_super: _bindgen_ty_4 = 36; +pub const JS_ATOM_implements: _bindgen_ty_4 = 37; +pub const JS_ATOM_interface: _bindgen_ty_4 = 38; +pub const JS_ATOM_let: _bindgen_ty_4 = 39; +pub const JS_ATOM_package: _bindgen_ty_4 = 40; +pub const JS_ATOM_private: _bindgen_ty_4 = 41; +pub const JS_ATOM_protected: _bindgen_ty_4 = 42; +pub const JS_ATOM_public: _bindgen_ty_4 = 43; +pub const JS_ATOM_static: _bindgen_ty_4 = 44; +pub const JS_ATOM_yield: _bindgen_ty_4 = 45; +pub const JS_ATOM_await: _bindgen_ty_4 = 46; +pub const JS_ATOM_empty_string: _bindgen_ty_4 = 47; +pub const JS_ATOM_keys: _bindgen_ty_4 = 48; +pub const JS_ATOM_size: _bindgen_ty_4 = 49; +pub const JS_ATOM_length: _bindgen_ty_4 = 50; +pub const JS_ATOM_message: _bindgen_ty_4 = 51; +pub const JS_ATOM_cause: _bindgen_ty_4 = 52; +pub const JS_ATOM_errors: _bindgen_ty_4 = 53; +pub const JS_ATOM_stack: _bindgen_ty_4 = 54; +pub const JS_ATOM_name: _bindgen_ty_4 = 55; +pub const JS_ATOM_toString: _bindgen_ty_4 = 56; +pub const JS_ATOM_toLocaleString: _bindgen_ty_4 = 57; +pub const JS_ATOM_valueOf: _bindgen_ty_4 = 58; +pub const JS_ATOM_eval: _bindgen_ty_4 = 59; +pub const JS_ATOM_prototype: _bindgen_ty_4 = 60; +pub const JS_ATOM_constructor: _bindgen_ty_4 = 61; +pub const JS_ATOM_configurable: _bindgen_ty_4 = 62; +pub const JS_ATOM_writable: _bindgen_ty_4 = 63; +pub const JS_ATOM_enumerable: _bindgen_ty_4 = 64; +pub const JS_ATOM_value: _bindgen_ty_4 = 65; +pub const JS_ATOM_get: _bindgen_ty_4 = 66; +pub const JS_ATOM_set: _bindgen_ty_4 = 67; +pub const JS_ATOM_of: _bindgen_ty_4 = 68; +pub const JS_ATOM___proto__: _bindgen_ty_4 = 69; +pub const JS_ATOM_undefined: _bindgen_ty_4 = 70; +pub const JS_ATOM_number: _bindgen_ty_4 = 71; +pub const JS_ATOM_boolean: _bindgen_ty_4 = 72; +pub const JS_ATOM_string: _bindgen_ty_4 = 73; +pub const JS_ATOM_object: _bindgen_ty_4 = 74; +pub const JS_ATOM_symbol: _bindgen_ty_4 = 75; +pub const JS_ATOM_integer: _bindgen_ty_4 = 76; +pub const JS_ATOM_unknown: _bindgen_ty_4 = 77; +pub const JS_ATOM_arguments: _bindgen_ty_4 = 78; +pub const JS_ATOM_callee: _bindgen_ty_4 = 79; +pub const JS_ATOM_caller: _bindgen_ty_4 = 80; +pub const JS_ATOM__eval_: _bindgen_ty_4 = 81; +pub const JS_ATOM__ret_: _bindgen_ty_4 = 82; +pub const JS_ATOM__var_: _bindgen_ty_4 = 83; +pub const JS_ATOM__arg_var_: _bindgen_ty_4 = 84; +pub const JS_ATOM__with_: _bindgen_ty_4 = 85; +pub const JS_ATOM_lastIndex: _bindgen_ty_4 = 86; +pub const JS_ATOM_target: _bindgen_ty_4 = 87; +pub const JS_ATOM_index: _bindgen_ty_4 = 88; +pub const JS_ATOM_input: _bindgen_ty_4 = 89; +pub const JS_ATOM_defineProperties: _bindgen_ty_4 = 90; +pub const JS_ATOM_apply: _bindgen_ty_4 = 91; +pub const JS_ATOM_join: _bindgen_ty_4 = 92; +pub const JS_ATOM_concat: _bindgen_ty_4 = 93; +pub const JS_ATOM_split: _bindgen_ty_4 = 94; +pub const JS_ATOM_construct: _bindgen_ty_4 = 95; +pub const JS_ATOM_getPrototypeOf: _bindgen_ty_4 = 96; +pub const JS_ATOM_setPrototypeOf: _bindgen_ty_4 = 97; +pub const JS_ATOM_isExtensible: _bindgen_ty_4 = 98; +pub const JS_ATOM_preventExtensions: _bindgen_ty_4 = 99; +pub const JS_ATOM_has: _bindgen_ty_4 = 100; +pub const JS_ATOM_deleteProperty: _bindgen_ty_4 = 101; +pub const JS_ATOM_defineProperty: _bindgen_ty_4 = 102; +pub const JS_ATOM_getOwnPropertyDescriptor: _bindgen_ty_4 = 103; +pub const JS_ATOM_ownKeys: _bindgen_ty_4 = 104; +pub const JS_ATOM_add: _bindgen_ty_4 = 105; +pub const JS_ATOM_done: _bindgen_ty_4 = 106; +pub const JS_ATOM_next: _bindgen_ty_4 = 107; +pub const JS_ATOM_values: _bindgen_ty_4 = 108; +pub const JS_ATOM_source: _bindgen_ty_4 = 109; +pub const JS_ATOM_flags: _bindgen_ty_4 = 110; +pub const JS_ATOM_global: _bindgen_ty_4 = 111; +pub const JS_ATOM_unicode: _bindgen_ty_4 = 112; +pub const JS_ATOM_raw: _bindgen_ty_4 = 113; +pub const JS_ATOM_new_target: _bindgen_ty_4 = 114; +pub const JS_ATOM_this_active_func: _bindgen_ty_4 = 115; +pub const JS_ATOM_home_object: _bindgen_ty_4 = 116; +pub const JS_ATOM_computed_field: _bindgen_ty_4 = 117; +pub const JS_ATOM_static_computed_field: _bindgen_ty_4 = 118; +pub const JS_ATOM_class_fields_init: _bindgen_ty_4 = 119; +pub const JS_ATOM_brand: _bindgen_ty_4 = 120; +pub const JS_ATOM_hash_constructor: _bindgen_ty_4 = 121; +pub const JS_ATOM_as: _bindgen_ty_4 = 122; +pub const JS_ATOM_from: _bindgen_ty_4 = 123; +pub const JS_ATOM_meta: _bindgen_ty_4 = 124; +pub const JS_ATOM__default_: _bindgen_ty_4 = 125; +pub const JS_ATOM__star_: _bindgen_ty_4 = 126; +pub const JS_ATOM_Module: _bindgen_ty_4 = 127; +pub const JS_ATOM_then: _bindgen_ty_4 = 128; +pub const JS_ATOM_resolve: _bindgen_ty_4 = 129; +pub const JS_ATOM_reject: _bindgen_ty_4 = 130; +pub const JS_ATOM_promise: _bindgen_ty_4 = 131; +pub const JS_ATOM_proxy: _bindgen_ty_4 = 132; +pub const JS_ATOM_revoke: _bindgen_ty_4 = 133; +pub const JS_ATOM_async: _bindgen_ty_4 = 134; +pub const JS_ATOM_exec: _bindgen_ty_4 = 135; +pub const JS_ATOM_groups: _bindgen_ty_4 = 136; +pub const JS_ATOM_indices: _bindgen_ty_4 = 137; +pub const JS_ATOM_status: _bindgen_ty_4 = 138; +pub const JS_ATOM_reason: _bindgen_ty_4 = 139; +pub const JS_ATOM_globalThis: _bindgen_ty_4 = 140; +pub const JS_ATOM_bigint: _bindgen_ty_4 = 141; +pub const JS_ATOM_not_equal: _bindgen_ty_4 = 142; +pub const JS_ATOM_timed_out: _bindgen_ty_4 = 143; +pub const JS_ATOM_ok: _bindgen_ty_4 = 144; +pub const JS_ATOM_toJSON: _bindgen_ty_4 = 145; +pub const JS_ATOM_maxByteLength: _bindgen_ty_4 = 146; +pub const JS_ATOM_Object: _bindgen_ty_4 = 147; +pub const JS_ATOM_Array: _bindgen_ty_4 = 148; +pub const JS_ATOM_Error: _bindgen_ty_4 = 149; +pub const JS_ATOM_Number: _bindgen_ty_4 = 150; +pub const JS_ATOM_String: _bindgen_ty_4 = 151; +pub const JS_ATOM_Boolean: _bindgen_ty_4 = 152; +pub const JS_ATOM_Symbol: _bindgen_ty_4 = 153; +pub const JS_ATOM_Arguments: _bindgen_ty_4 = 154; +pub const JS_ATOM_Math: _bindgen_ty_4 = 155; +pub const JS_ATOM_JSON: _bindgen_ty_4 = 156; +pub const JS_ATOM_Date: _bindgen_ty_4 = 157; +pub const JS_ATOM_Function: _bindgen_ty_4 = 158; +pub const JS_ATOM_GeneratorFunction: _bindgen_ty_4 = 159; +pub const JS_ATOM_ForInIterator: _bindgen_ty_4 = 160; +pub const JS_ATOM_RegExp: _bindgen_ty_4 = 161; +pub const JS_ATOM_ArrayBuffer: _bindgen_ty_4 = 162; +pub const JS_ATOM_SharedArrayBuffer: _bindgen_ty_4 = 163; +pub const JS_ATOM_Uint8ClampedArray: _bindgen_ty_4 = 164; +pub const JS_ATOM_Int8Array: _bindgen_ty_4 = 165; +pub const JS_ATOM_Uint8Array: _bindgen_ty_4 = 166; +pub const JS_ATOM_Int16Array: _bindgen_ty_4 = 167; +pub const JS_ATOM_Uint16Array: _bindgen_ty_4 = 168; +pub const JS_ATOM_Int32Array: _bindgen_ty_4 = 169; +pub const JS_ATOM_Uint32Array: _bindgen_ty_4 = 170; +pub const JS_ATOM_BigInt64Array: _bindgen_ty_4 = 171; +pub const JS_ATOM_BigUint64Array: _bindgen_ty_4 = 172; +pub const JS_ATOM_Float16Array: _bindgen_ty_4 = 173; +pub const JS_ATOM_Float32Array: _bindgen_ty_4 = 174; +pub const JS_ATOM_Float64Array: _bindgen_ty_4 = 175; +pub const JS_ATOM_DataView: _bindgen_ty_4 = 176; +pub const JS_ATOM_BigInt: _bindgen_ty_4 = 177; +pub const JS_ATOM_WeakRef: _bindgen_ty_4 = 178; +pub const JS_ATOM_FinalizationRegistry: _bindgen_ty_4 = 179; +pub const JS_ATOM_Map: _bindgen_ty_4 = 180; +pub const JS_ATOM_Set: _bindgen_ty_4 = 181; +pub const JS_ATOM_WeakMap: _bindgen_ty_4 = 182; +pub const JS_ATOM_WeakSet: _bindgen_ty_4 = 183; +pub const JS_ATOM_Iterator: _bindgen_ty_4 = 184; +pub const JS_ATOM_IteratorHelper: _bindgen_ty_4 = 185; +pub const JS_ATOM_IteratorWrap: _bindgen_ty_4 = 186; +pub const JS_ATOM_Map_Iterator: _bindgen_ty_4 = 187; +pub const JS_ATOM_Set_Iterator: _bindgen_ty_4 = 188; +pub const JS_ATOM_Array_Iterator: _bindgen_ty_4 = 189; +pub const JS_ATOM_String_Iterator: _bindgen_ty_4 = 190; +pub const JS_ATOM_RegExp_String_Iterator: _bindgen_ty_4 = 191; +pub const JS_ATOM_Generator: _bindgen_ty_4 = 192; +pub const JS_ATOM_Proxy: _bindgen_ty_4 = 193; +pub const JS_ATOM_Promise: _bindgen_ty_4 = 194; +pub const JS_ATOM_PromiseResolveFunction: _bindgen_ty_4 = 195; +pub const JS_ATOM_PromiseRejectFunction: _bindgen_ty_4 = 196; +pub const JS_ATOM_AsyncFunction: _bindgen_ty_4 = 197; +pub const JS_ATOM_AsyncFunctionResolve: _bindgen_ty_4 = 198; +pub const JS_ATOM_AsyncFunctionReject: _bindgen_ty_4 = 199; +pub const JS_ATOM_AsyncGeneratorFunction: _bindgen_ty_4 = 200; +pub const JS_ATOM_AsyncGenerator: _bindgen_ty_4 = 201; +pub const JS_ATOM_EvalError: _bindgen_ty_4 = 202; +pub const JS_ATOM_RangeError: _bindgen_ty_4 = 203; +pub const JS_ATOM_ReferenceError: _bindgen_ty_4 = 204; +pub const JS_ATOM_SyntaxError: _bindgen_ty_4 = 205; +pub const JS_ATOM_TypeError: _bindgen_ty_4 = 206; +pub const JS_ATOM_URIError: _bindgen_ty_4 = 207; +pub const JS_ATOM_InternalError: _bindgen_ty_4 = 208; +pub const JS_ATOM_CallSite: _bindgen_ty_4 = 209; +pub const JS_ATOM_Private_brand: _bindgen_ty_4 = 210; +pub const JS_ATOM_Symbol_toPrimitive: _bindgen_ty_4 = 211; +pub const JS_ATOM_Symbol_iterator: _bindgen_ty_4 = 212; +pub const JS_ATOM_Symbol_match: _bindgen_ty_4 = 213; +pub const JS_ATOM_Symbol_matchAll: _bindgen_ty_4 = 214; +pub const JS_ATOM_Symbol_replace: _bindgen_ty_4 = 215; +pub const JS_ATOM_Symbol_search: _bindgen_ty_4 = 216; +pub const JS_ATOM_Symbol_split: _bindgen_ty_4 = 217; +pub const JS_ATOM_Symbol_toStringTag: _bindgen_ty_4 = 218; +pub const JS_ATOM_Symbol_isConcatSpreadable: _bindgen_ty_4 = 219; +pub const JS_ATOM_Symbol_hasInstance: _bindgen_ty_4 = 220; +pub const JS_ATOM_Symbol_species: _bindgen_ty_4 = 221; +pub const JS_ATOM_Symbol_unscopables: _bindgen_ty_4 = 222; +pub const JS_ATOM_Symbol_asyncIterator: _bindgen_ty_4 = 223; +pub const JS_ATOM_END: _bindgen_ty_4 = 224; +pub type _bindgen_ty_4 = ::std::os::raw::c_uint; diff --git a/sys/src/bindings/i686-unknown-linux-gnu.rs b/sys/src/bindings/i686-unknown-linux-gnu.rs index 815edc5d..cd41a213 100644 --- a/sys/src/bindings/i686-unknown-linux-gnu.rs +++ b/sys/src/bindings/i686-unknown-linux-gnu.rs @@ -24,7 +24,7 @@ pub const JS_PROP_NO_ADD: u32 = 65536; pub const JS_PROP_NO_EXOTIC: u32 = 131072; pub const JS_PROP_DEFINE_PROPERTY: u32 = 262144; pub const JS_PROP_REFLECT_DEFINE_PROPERTY: u32 = 524288; -pub const JS_DEFAULT_STACK_SIZE: u32 = 262144; +pub const JS_DEFAULT_STACK_SIZE: u32 = 1048576; pub const JS_EVAL_TYPE_GLOBAL: u32 = 0; pub const JS_EVAL_TYPE_MODULE: u32 = 1; pub const JS_EVAL_TYPE_DIRECT: u32 = 2; @@ -1187,6 +1187,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1253,6 +1259,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1330,6 +1339,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1343,6 +1355,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1352,6 +1370,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1438,6 +1459,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1641,6 +1668,27 @@ extern "C" { extern "C" { pub fn JS_GetUint8Array(ctx: *mut JSContext, psize: *mut size_t, obj: JSValue) -> *mut u8; } +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8C: JSTypedArrayEnum = 0; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT8: JSTypedArrayEnum = 1; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8: JSTypedArrayEnum = 2; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT16: JSTypedArrayEnum = 3; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT16: JSTypedArrayEnum = 4; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT32: JSTypedArrayEnum = 5; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT32: JSTypedArrayEnum = 6; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_INT64: JSTypedArrayEnum = 7; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_UINT64: JSTypedArrayEnum = 8; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT16: JSTypedArrayEnum = 9; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT32: JSTypedArrayEnum = 10; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT64: JSTypedArrayEnum = 11; +pub type JSTypedArrayEnum = ::std::os::raw::c_uint; +extern "C" { + pub fn JS_NewTypedArray( + ctx: *mut JSContext, + argc: ::std::os::raw::c_int, + argv: *mut JSValue, + array_type: JSTypedArrayEnum, + ) -> JSValue; +} extern "C" { pub fn JS_GetTypedArrayBuffer( ctx: *mut JSContext, @@ -1661,7 +1709,7 @@ extern "C" { ) -> JSValue; } extern "C" { - pub fn JS_IsUint8Array(obj: JSValue) -> ::std::os::raw::c_int; + pub fn JS_GetTypedArrayType(obj: JSValue) -> ::std::os::raw::c_int; } extern "C" { pub fn JS_NewUint8ArrayCopy(ctx: *mut JSContext, buf: *const u8, len: size_t) -> JSValue; @@ -1758,6 +1806,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, diff --git a/sys/src/bindings/loongarch64-unknown-linux-gnu.rs b/sys/src/bindings/loongarch64-unknown-linux-gnu.rs index b3ceaf5f..9b97fb2c 100644 --- a/sys/src/bindings/loongarch64-unknown-linux-gnu.rs +++ b/sys/src/bindings/loongarch64-unknown-linux-gnu.rs @@ -23,7 +23,7 @@ pub const JS_PROP_NO_ADD: u32 = 65536; pub const JS_PROP_NO_EXOTIC: u32 = 131072; pub const JS_PROP_DEFINE_PROPERTY: u32 = 262144; pub const JS_PROP_REFLECT_DEFINE_PROPERTY: u32 = 524288; -pub const JS_DEFAULT_STACK_SIZE: u32 = 262144; +pub const JS_DEFAULT_STACK_SIZE: u32 = 1048576; pub const JS_EVAL_TYPE_GLOBAL: u32 = 0; pub const JS_EVAL_TYPE_MODULE: u32 = 1; pub const JS_EVAL_TYPE_DIRECT: u32 = 2; @@ -1278,6 +1278,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1344,6 +1350,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1421,6 +1430,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1434,6 +1446,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1443,6 +1461,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1529,6 +1550,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1732,6 +1759,27 @@ extern "C" { extern "C" { pub fn JS_GetUint8Array(ctx: *mut JSContext, psize: *mut size_t, obj: JSValue) -> *mut u8; } +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8C: JSTypedArrayEnum = 0; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT8: JSTypedArrayEnum = 1; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8: JSTypedArrayEnum = 2; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT16: JSTypedArrayEnum = 3; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT16: JSTypedArrayEnum = 4; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT32: JSTypedArrayEnum = 5; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT32: JSTypedArrayEnum = 6; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_INT64: JSTypedArrayEnum = 7; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_UINT64: JSTypedArrayEnum = 8; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT16: JSTypedArrayEnum = 9; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT32: JSTypedArrayEnum = 10; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT64: JSTypedArrayEnum = 11; +pub type JSTypedArrayEnum = ::std::os::raw::c_uint; +extern "C" { + pub fn JS_NewTypedArray( + ctx: *mut JSContext, + argc: ::std::os::raw::c_int, + argv: *mut JSValue, + array_type: JSTypedArrayEnum, + ) -> JSValue; +} extern "C" { pub fn JS_GetTypedArrayBuffer( ctx: *mut JSContext, @@ -1752,7 +1800,7 @@ extern "C" { ) -> JSValue; } extern "C" { - pub fn JS_IsUint8Array(obj: JSValue) -> ::std::os::raw::c_int; + pub fn JS_GetTypedArrayType(obj: JSValue) -> ::std::os::raw::c_int; } extern "C" { pub fn JS_NewUint8ArrayCopy(ctx: *mut JSContext, buf: *const u8, len: size_t) -> JSValue; @@ -1849,6 +1897,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, diff --git a/sys/src/bindings/loongarch64-unknown-linux-musl.rs b/sys/src/bindings/loongarch64-unknown-linux-musl.rs index b3ceaf5f..9b97fb2c 100644 --- a/sys/src/bindings/loongarch64-unknown-linux-musl.rs +++ b/sys/src/bindings/loongarch64-unknown-linux-musl.rs @@ -23,7 +23,7 @@ pub const JS_PROP_NO_ADD: u32 = 65536; pub const JS_PROP_NO_EXOTIC: u32 = 131072; pub const JS_PROP_DEFINE_PROPERTY: u32 = 262144; pub const JS_PROP_REFLECT_DEFINE_PROPERTY: u32 = 524288; -pub const JS_DEFAULT_STACK_SIZE: u32 = 262144; +pub const JS_DEFAULT_STACK_SIZE: u32 = 1048576; pub const JS_EVAL_TYPE_GLOBAL: u32 = 0; pub const JS_EVAL_TYPE_MODULE: u32 = 1; pub const JS_EVAL_TYPE_DIRECT: u32 = 2; @@ -1278,6 +1278,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1344,6 +1350,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1421,6 +1430,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1434,6 +1446,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1443,6 +1461,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1529,6 +1550,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1732,6 +1759,27 @@ extern "C" { extern "C" { pub fn JS_GetUint8Array(ctx: *mut JSContext, psize: *mut size_t, obj: JSValue) -> *mut u8; } +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8C: JSTypedArrayEnum = 0; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT8: JSTypedArrayEnum = 1; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8: JSTypedArrayEnum = 2; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT16: JSTypedArrayEnum = 3; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT16: JSTypedArrayEnum = 4; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT32: JSTypedArrayEnum = 5; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT32: JSTypedArrayEnum = 6; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_INT64: JSTypedArrayEnum = 7; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_UINT64: JSTypedArrayEnum = 8; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT16: JSTypedArrayEnum = 9; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT32: JSTypedArrayEnum = 10; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT64: JSTypedArrayEnum = 11; +pub type JSTypedArrayEnum = ::std::os::raw::c_uint; +extern "C" { + pub fn JS_NewTypedArray( + ctx: *mut JSContext, + argc: ::std::os::raw::c_int, + argv: *mut JSValue, + array_type: JSTypedArrayEnum, + ) -> JSValue; +} extern "C" { pub fn JS_GetTypedArrayBuffer( ctx: *mut JSContext, @@ -1752,7 +1800,7 @@ extern "C" { ) -> JSValue; } extern "C" { - pub fn JS_IsUint8Array(obj: JSValue) -> ::std::os::raw::c_int; + pub fn JS_GetTypedArrayType(obj: JSValue) -> ::std::os::raw::c_int; } extern "C" { pub fn JS_NewUint8ArrayCopy(ctx: *mut JSContext, buf: *const u8, len: size_t) -> JSValue; @@ -1849,6 +1897,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, diff --git a/sys/src/bindings/wasm32-wasip1.rs b/sys/src/bindings/wasm32-wasip1.rs index a20eff13..020a9f93 100644 --- a/sys/src/bindings/wasm32-wasip1.rs +++ b/sys/src/bindings/wasm32-wasip1.rs @@ -24,7 +24,7 @@ pub const JS_PROP_NO_ADD: u32 = 65536; pub const JS_PROP_NO_EXOTIC: u32 = 131072; pub const JS_PROP_DEFINE_PROPERTY: u32 = 262144; pub const JS_PROP_REFLECT_DEFINE_PROPERTY: u32 = 524288; -pub const JS_DEFAULT_STACK_SIZE: u32 = 0; +pub const JS_DEFAULT_STACK_SIZE: u32 = 1048576; pub const JS_EVAL_TYPE_GLOBAL: u32 = 0; pub const JS_EVAL_TYPE_MODULE: u32 = 1; pub const JS_EVAL_TYPE_DIRECT: u32 = 2; @@ -1187,6 +1187,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1253,6 +1259,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1330,6 +1339,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1343,6 +1355,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1352,6 +1370,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1438,6 +1459,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1641,6 +1668,27 @@ extern "C" { extern "C" { pub fn JS_GetUint8Array(ctx: *mut JSContext, psize: *mut size_t, obj: JSValue) -> *mut u8; } +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8C: JSTypedArrayEnum = 0; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT8: JSTypedArrayEnum = 1; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8: JSTypedArrayEnum = 2; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT16: JSTypedArrayEnum = 3; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT16: JSTypedArrayEnum = 4; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT32: JSTypedArrayEnum = 5; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT32: JSTypedArrayEnum = 6; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_INT64: JSTypedArrayEnum = 7; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_UINT64: JSTypedArrayEnum = 8; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT16: JSTypedArrayEnum = 9; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT32: JSTypedArrayEnum = 10; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT64: JSTypedArrayEnum = 11; +pub type JSTypedArrayEnum = ::std::os::raw::c_uint; +extern "C" { + pub fn JS_NewTypedArray( + ctx: *mut JSContext, + argc: ::std::os::raw::c_int, + argv: *mut JSValue, + array_type: JSTypedArrayEnum, + ) -> JSValue; +} extern "C" { pub fn JS_GetTypedArrayBuffer( ctx: *mut JSContext, @@ -1661,7 +1709,7 @@ extern "C" { ) -> JSValue; } extern "C" { - pub fn JS_IsUint8Array(obj: JSValue) -> ::std::os::raw::c_int; + pub fn JS_GetTypedArrayType(obj: JSValue) -> ::std::os::raw::c_int; } extern "C" { pub fn JS_NewUint8ArrayCopy(ctx: *mut JSContext, buf: *const u8, len: size_t) -> JSValue; @@ -1758,6 +1806,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, diff --git a/sys/src/bindings/wasm32-wasip2.rs b/sys/src/bindings/wasm32-wasip2.rs index a20eff13..020a9f93 100644 --- a/sys/src/bindings/wasm32-wasip2.rs +++ b/sys/src/bindings/wasm32-wasip2.rs @@ -24,7 +24,7 @@ pub const JS_PROP_NO_ADD: u32 = 65536; pub const JS_PROP_NO_EXOTIC: u32 = 131072; pub const JS_PROP_DEFINE_PROPERTY: u32 = 262144; pub const JS_PROP_REFLECT_DEFINE_PROPERTY: u32 = 524288; -pub const JS_DEFAULT_STACK_SIZE: u32 = 0; +pub const JS_DEFAULT_STACK_SIZE: u32 = 1048576; pub const JS_EVAL_TYPE_GLOBAL: u32 = 0; pub const JS_EVAL_TYPE_MODULE: u32 = 1; pub const JS_EVAL_TYPE_DIRECT: u32 = 2; @@ -1187,6 +1187,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1253,6 +1259,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1330,6 +1339,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1343,6 +1355,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1352,6 +1370,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1438,6 +1459,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1641,6 +1668,27 @@ extern "C" { extern "C" { pub fn JS_GetUint8Array(ctx: *mut JSContext, psize: *mut size_t, obj: JSValue) -> *mut u8; } +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8C: JSTypedArrayEnum = 0; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT8: JSTypedArrayEnum = 1; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8: JSTypedArrayEnum = 2; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT16: JSTypedArrayEnum = 3; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT16: JSTypedArrayEnum = 4; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT32: JSTypedArrayEnum = 5; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT32: JSTypedArrayEnum = 6; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_INT64: JSTypedArrayEnum = 7; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_UINT64: JSTypedArrayEnum = 8; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT16: JSTypedArrayEnum = 9; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT32: JSTypedArrayEnum = 10; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT64: JSTypedArrayEnum = 11; +pub type JSTypedArrayEnum = ::std::os::raw::c_uint; +extern "C" { + pub fn JS_NewTypedArray( + ctx: *mut JSContext, + argc: ::std::os::raw::c_int, + argv: *mut JSValue, + array_type: JSTypedArrayEnum, + ) -> JSValue; +} extern "C" { pub fn JS_GetTypedArrayBuffer( ctx: *mut JSContext, @@ -1661,7 +1709,7 @@ extern "C" { ) -> JSValue; } extern "C" { - pub fn JS_IsUint8Array(obj: JSValue) -> ::std::os::raw::c_int; + pub fn JS_GetTypedArrayType(obj: JSValue) -> ::std::os::raw::c_int; } extern "C" { pub fn JS_NewUint8ArrayCopy(ctx: *mut JSContext, buf: *const u8, len: size_t) -> JSValue; @@ -1758,6 +1806,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, diff --git a/sys/src/bindings/x86_64-apple-darwin.rs b/sys/src/bindings/x86_64-apple-darwin.rs index d3649472..f02f35b5 100644 --- a/sys/src/bindings/x86_64-apple-darwin.rs +++ b/sys/src/bindings/x86_64-apple-darwin.rs @@ -1279,6 +1279,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1345,6 +1351,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1422,6 +1431,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1435,6 +1447,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1444,6 +1462,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1530,6 +1551,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1871,6 +1898,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, diff --git a/sys/src/bindings/x86_64-pc-windows-gnu.rs b/sys/src/bindings/x86_64-pc-windows-gnu.rs index 1c11c184..a451d992 100644 --- a/sys/src/bindings/x86_64-pc-windows-gnu.rs +++ b/sys/src/bindings/x86_64-pc-windows-gnu.rs @@ -23,7 +23,7 @@ pub const JS_PROP_NO_ADD: u32 = 65536; pub const JS_PROP_NO_EXOTIC: u32 = 131072; pub const JS_PROP_DEFINE_PROPERTY: u32 = 262144; pub const JS_PROP_REFLECT_DEFINE_PROPERTY: u32 = 524288; -pub const JS_DEFAULT_STACK_SIZE: u32 = 262144; +pub const JS_DEFAULT_STACK_SIZE: u32 = 1048576; pub const JS_EVAL_TYPE_GLOBAL: u32 = 0; pub const JS_EVAL_TYPE_MODULE: u32 = 1; pub const JS_EVAL_TYPE_DIRECT: u32 = 2; @@ -1278,6 +1278,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1344,6 +1350,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1421,6 +1430,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1434,6 +1446,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1443,6 +1461,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1529,6 +1550,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1732,6 +1759,27 @@ extern "C" { extern "C" { pub fn JS_GetUint8Array(ctx: *mut JSContext, psize: *mut size_t, obj: JSValue) -> *mut u8; } +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8C: JSTypedArrayEnum = 0; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT8: JSTypedArrayEnum = 1; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8: JSTypedArrayEnum = 2; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT16: JSTypedArrayEnum = 3; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT16: JSTypedArrayEnum = 4; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT32: JSTypedArrayEnum = 5; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT32: JSTypedArrayEnum = 6; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_INT64: JSTypedArrayEnum = 7; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_UINT64: JSTypedArrayEnum = 8; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT16: JSTypedArrayEnum = 9; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT32: JSTypedArrayEnum = 10; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT64: JSTypedArrayEnum = 11; +pub type JSTypedArrayEnum = ::std::os::raw::c_uint; +extern "C" { + pub fn JS_NewTypedArray( + ctx: *mut JSContext, + argc: ::std::os::raw::c_int, + argv: *mut JSValue, + array_type: JSTypedArrayEnum, + ) -> JSValue; +} extern "C" { pub fn JS_GetTypedArrayBuffer( ctx: *mut JSContext, @@ -1752,7 +1800,7 @@ extern "C" { ) -> JSValue; } extern "C" { - pub fn JS_IsUint8Array(obj: JSValue) -> ::std::os::raw::c_int; + pub fn JS_GetTypedArrayType(obj: JSValue) -> ::std::os::raw::c_int; } extern "C" { pub fn JS_NewUint8ArrayCopy(ctx: *mut JSContext, buf: *const u8, len: size_t) -> JSValue; @@ -1849,6 +1897,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, diff --git a/sys/src/bindings/x86_64-pc-windows-msvc.rs b/sys/src/bindings/x86_64-pc-windows-msvc.rs index 34cb40de..ae244cea 100644 --- a/sys/src/bindings/x86_64-pc-windows-msvc.rs +++ b/sys/src/bindings/x86_64-pc-windows-msvc.rs @@ -23,7 +23,7 @@ pub const JS_PROP_NO_ADD: u32 = 65536; pub const JS_PROP_NO_EXOTIC: u32 = 131072; pub const JS_PROP_DEFINE_PROPERTY: u32 = 262144; pub const JS_PROP_REFLECT_DEFINE_PROPERTY: u32 = 524288; -pub const JS_DEFAULT_STACK_SIZE: u32 = 262144; +pub const JS_DEFAULT_STACK_SIZE: u32 = 1048576; pub const JS_EVAL_TYPE_GLOBAL: u32 = 0; pub const JS_EVAL_TYPE_MODULE: u32 = 1; pub const JS_EVAL_TYPE_DIRECT: u32 = 2; @@ -1278,6 +1278,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1344,6 +1350,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1421,6 +1430,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1434,6 +1446,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1443,6 +1461,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1529,6 +1550,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1732,6 +1759,27 @@ extern "C" { extern "C" { pub fn JS_GetUint8Array(ctx: *mut JSContext, psize: *mut size_t, obj: JSValue) -> *mut u8; } +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8C: JSTypedArrayEnum = 0; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT8: JSTypedArrayEnum = 1; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8: JSTypedArrayEnum = 2; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT16: JSTypedArrayEnum = 3; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT16: JSTypedArrayEnum = 4; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT32: JSTypedArrayEnum = 5; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT32: JSTypedArrayEnum = 6; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_INT64: JSTypedArrayEnum = 7; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_UINT64: JSTypedArrayEnum = 8; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT16: JSTypedArrayEnum = 9; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT32: JSTypedArrayEnum = 10; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT64: JSTypedArrayEnum = 11; +pub type JSTypedArrayEnum = ::std::os::raw::c_int; +extern "C" { + pub fn JS_NewTypedArray( + ctx: *mut JSContext, + argc: ::std::os::raw::c_int, + argv: *mut JSValue, + array_type: JSTypedArrayEnum, + ) -> JSValue; +} extern "C" { pub fn JS_GetTypedArrayBuffer( ctx: *mut JSContext, @@ -1752,7 +1800,7 @@ extern "C" { ) -> JSValue; } extern "C" { - pub fn JS_IsUint8Array(obj: JSValue) -> ::std::os::raw::c_int; + pub fn JS_GetTypedArrayType(obj: JSValue) -> ::std::os::raw::c_int; } extern "C" { pub fn JS_NewUint8ArrayCopy(ctx: *mut JSContext, buf: *const u8, len: size_t) -> JSValue; @@ -1849,6 +1897,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, diff --git a/sys/src/bindings/x86_64-unknown-linux-gnu.rs b/sys/src/bindings/x86_64-unknown-linux-gnu.rs index b3ceaf5f..9b97fb2c 100644 --- a/sys/src/bindings/x86_64-unknown-linux-gnu.rs +++ b/sys/src/bindings/x86_64-unknown-linux-gnu.rs @@ -23,7 +23,7 @@ pub const JS_PROP_NO_ADD: u32 = 65536; pub const JS_PROP_NO_EXOTIC: u32 = 131072; pub const JS_PROP_DEFINE_PROPERTY: u32 = 262144; pub const JS_PROP_REFLECT_DEFINE_PROPERTY: u32 = 524288; -pub const JS_DEFAULT_STACK_SIZE: u32 = 262144; +pub const JS_DEFAULT_STACK_SIZE: u32 = 1048576; pub const JS_EVAL_TYPE_GLOBAL: u32 = 0; pub const JS_EVAL_TYPE_MODULE: u32 = 1; pub const JS_EVAL_TYPE_DIRECT: u32 = 2; @@ -1278,6 +1278,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1344,6 +1350,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1421,6 +1430,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1434,6 +1446,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1443,6 +1461,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1529,6 +1550,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1732,6 +1759,27 @@ extern "C" { extern "C" { pub fn JS_GetUint8Array(ctx: *mut JSContext, psize: *mut size_t, obj: JSValue) -> *mut u8; } +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8C: JSTypedArrayEnum = 0; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT8: JSTypedArrayEnum = 1; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8: JSTypedArrayEnum = 2; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT16: JSTypedArrayEnum = 3; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT16: JSTypedArrayEnum = 4; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT32: JSTypedArrayEnum = 5; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT32: JSTypedArrayEnum = 6; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_INT64: JSTypedArrayEnum = 7; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_UINT64: JSTypedArrayEnum = 8; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT16: JSTypedArrayEnum = 9; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT32: JSTypedArrayEnum = 10; +pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT64: JSTypedArrayEnum = 11; +pub type JSTypedArrayEnum = ::std::os::raw::c_uint; +extern "C" { + pub fn JS_NewTypedArray( + ctx: *mut JSContext, + argc: ::std::os::raw::c_int, + argv: *mut JSValue, + array_type: JSTypedArrayEnum, + ) -> JSValue; +} extern "C" { pub fn JS_GetTypedArrayBuffer( ctx: *mut JSContext, @@ -1752,7 +1800,7 @@ extern "C" { ) -> JSValue; } extern "C" { - pub fn JS_IsUint8Array(obj: JSValue) -> ::std::os::raw::c_int; + pub fn JS_GetTypedArrayType(obj: JSValue) -> ::std::os::raw::c_int; } extern "C" { pub fn JS_NewUint8ArrayCopy(ctx: *mut JSContext, buf: *const u8, len: size_t) -> JSValue; @@ -1849,6 +1897,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, diff --git a/sys/src/bindings/x86_64-unknown-linux-musl.rs b/sys/src/bindings/x86_64-unknown-linux-musl.rs index c7152add..9b97fb2c 100644 --- a/sys/src/bindings/x86_64-unknown-linux-musl.rs +++ b/sys/src/bindings/x86_64-unknown-linux-musl.rs @@ -85,22 +85,22 @@ pub struct JSClass { } pub type JSClassID = u32; pub type JSAtom = u32; -pub const JS_TAG_FIRST: _bindgen_ty_1 = -9; -pub const JS_TAG_BIG_INT: _bindgen_ty_1 = -9; -pub const JS_TAG_SYMBOL: _bindgen_ty_1 = -8; -pub const JS_TAG_STRING: _bindgen_ty_1 = -7; -pub const JS_TAG_MODULE: _bindgen_ty_1 = -3; -pub const JS_TAG_FUNCTION_BYTECODE: _bindgen_ty_1 = -2; -pub const JS_TAG_OBJECT: _bindgen_ty_1 = -1; -pub const JS_TAG_INT: _bindgen_ty_1 = 0; -pub const JS_TAG_BOOL: _bindgen_ty_1 = 1; -pub const JS_TAG_NULL: _bindgen_ty_1 = 2; -pub const JS_TAG_UNDEFINED: _bindgen_ty_1 = 3; -pub const JS_TAG_UNINITIALIZED: _bindgen_ty_1 = 4; -pub const JS_TAG_CATCH_OFFSET: _bindgen_ty_1 = 5; -pub const JS_TAG_EXCEPTION: _bindgen_ty_1 = 6; -pub const JS_TAG_FLOAT64: _bindgen_ty_1 = 7; -pub type _bindgen_ty_1 = ::std::os::raw::c_int; +pub const JS_TAG_FIRST: _bindgen_ty_3 = -9; +pub const JS_TAG_BIG_INT: _bindgen_ty_3 = -9; +pub const JS_TAG_SYMBOL: _bindgen_ty_3 = -8; +pub const JS_TAG_STRING: _bindgen_ty_3 = -7; +pub const JS_TAG_MODULE: _bindgen_ty_3 = -3; +pub const JS_TAG_FUNCTION_BYTECODE: _bindgen_ty_3 = -2; +pub const JS_TAG_OBJECT: _bindgen_ty_3 = -1; +pub const JS_TAG_INT: _bindgen_ty_3 = 0; +pub const JS_TAG_BOOL: _bindgen_ty_3 = 1; +pub const JS_TAG_NULL: _bindgen_ty_3 = 2; +pub const JS_TAG_UNDEFINED: _bindgen_ty_3 = 3; +pub const JS_TAG_UNINITIALIZED: _bindgen_ty_3 = 4; +pub const JS_TAG_CATCH_OFFSET: _bindgen_ty_3 = 5; +pub const JS_TAG_EXCEPTION: _bindgen_ty_3 = 6; +pub const JS_TAG_FLOAT64: _bindgen_ty_3 = 7; +pub type _bindgen_ty_3 = ::std::os::raw::c_int; #[repr(C)] #[derive(Copy, Clone)] pub union JSValueUnion { @@ -1278,6 +1278,12 @@ extern "C" { extern "C" { pub fn JS_IsUncatchableError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SetUncatchableError(ctx: *mut JSContext, val: JSValue); +} +extern "C" { + pub fn JS_ClearUncatchableError(ctx: *mut JSContext, val: JSValue); +} extern "C" { pub fn JS_ResetUncatchableError(ctx: *mut JSContext); } @@ -1344,6 +1350,9 @@ extern "C" { extern "C" { pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_ToNumber(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int; } @@ -1421,6 +1430,9 @@ extern "C" { extern "C" { pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue; } +extern "C" { + pub fn JS_ToObject(ctx: *mut JSContext, val: JSValue) -> JSValue; +} extern "C" { pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int; } @@ -1434,6 +1446,12 @@ extern "C" { val: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_IsRegExp(val: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_IsMap(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue; } @@ -1443,6 +1461,9 @@ extern "C" { extern "C" { pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue; } +extern "C" { + pub fn JS_IsDate(v: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetProperty(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom) -> JSValue; } @@ -1529,6 +1550,12 @@ extern "C" { extern "C" { pub fn JS_SetLength(ctx: *mut JSContext, obj: JSValue, len: i64) -> ::std::os::raw::c_int; } +extern "C" { + pub fn JS_SealObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn JS_FreezeObject(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_GetOwnPropertyNames( ctx: *mut JSContext, @@ -1870,6 +1897,9 @@ extern "C" { extern "C" { pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue; } +extern "C" { + pub fn JS_IsPromise(val: JSValue) -> ::std::os::raw::c_int; +} extern "C" { pub fn JS_NewSymbol( ctx: *mut JSContext, @@ -2751,229 +2781,229 @@ extern "C" { extern "C" { pub fn js_std_cmd(cmd: ::std::os::raw::c_int, ...) -> usize; } -pub const __JS_ATOM_NULL: _bindgen_ty_2 = 0; -pub const JS_ATOM_null: _bindgen_ty_2 = 1; -pub const JS_ATOM_false: _bindgen_ty_2 = 2; -pub const JS_ATOM_true: _bindgen_ty_2 = 3; -pub const JS_ATOM_if: _bindgen_ty_2 = 4; -pub const JS_ATOM_else: _bindgen_ty_2 = 5; -pub const JS_ATOM_return: _bindgen_ty_2 = 6; -pub const JS_ATOM_var: _bindgen_ty_2 = 7; -pub const JS_ATOM_this: _bindgen_ty_2 = 8; -pub const JS_ATOM_delete: _bindgen_ty_2 = 9; -pub const JS_ATOM_void: _bindgen_ty_2 = 10; -pub const JS_ATOM_typeof: _bindgen_ty_2 = 11; -pub const JS_ATOM_new: _bindgen_ty_2 = 12; -pub const JS_ATOM_in: _bindgen_ty_2 = 13; -pub const JS_ATOM_instanceof: _bindgen_ty_2 = 14; -pub const JS_ATOM_do: _bindgen_ty_2 = 15; -pub const JS_ATOM_while: _bindgen_ty_2 = 16; -pub const JS_ATOM_for: _bindgen_ty_2 = 17; -pub const JS_ATOM_break: _bindgen_ty_2 = 18; -pub const JS_ATOM_continue: _bindgen_ty_2 = 19; -pub const JS_ATOM_switch: _bindgen_ty_2 = 20; -pub const JS_ATOM_case: _bindgen_ty_2 = 21; -pub const JS_ATOM_default: _bindgen_ty_2 = 22; -pub const JS_ATOM_throw: _bindgen_ty_2 = 23; -pub const JS_ATOM_try: _bindgen_ty_2 = 24; -pub const JS_ATOM_catch: _bindgen_ty_2 = 25; -pub const JS_ATOM_finally: _bindgen_ty_2 = 26; -pub const JS_ATOM_function: _bindgen_ty_2 = 27; -pub const JS_ATOM_debugger: _bindgen_ty_2 = 28; -pub const JS_ATOM_with: _bindgen_ty_2 = 29; -pub const JS_ATOM_class: _bindgen_ty_2 = 30; -pub const JS_ATOM_const: _bindgen_ty_2 = 31; -pub const JS_ATOM_enum: _bindgen_ty_2 = 32; -pub const JS_ATOM_export: _bindgen_ty_2 = 33; -pub const JS_ATOM_extends: _bindgen_ty_2 = 34; -pub const JS_ATOM_import: _bindgen_ty_2 = 35; -pub const JS_ATOM_super: _bindgen_ty_2 = 36; -pub const JS_ATOM_implements: _bindgen_ty_2 = 37; -pub const JS_ATOM_interface: _bindgen_ty_2 = 38; -pub const JS_ATOM_let: _bindgen_ty_2 = 39; -pub const JS_ATOM_package: _bindgen_ty_2 = 40; -pub const JS_ATOM_private: _bindgen_ty_2 = 41; -pub const JS_ATOM_protected: _bindgen_ty_2 = 42; -pub const JS_ATOM_public: _bindgen_ty_2 = 43; -pub const JS_ATOM_static: _bindgen_ty_2 = 44; -pub const JS_ATOM_yield: _bindgen_ty_2 = 45; -pub const JS_ATOM_await: _bindgen_ty_2 = 46; -pub const JS_ATOM_empty_string: _bindgen_ty_2 = 47; -pub const JS_ATOM_keys: _bindgen_ty_2 = 48; -pub const JS_ATOM_size: _bindgen_ty_2 = 49; -pub const JS_ATOM_length: _bindgen_ty_2 = 50; -pub const JS_ATOM_message: _bindgen_ty_2 = 51; -pub const JS_ATOM_cause: _bindgen_ty_2 = 52; -pub const JS_ATOM_errors: _bindgen_ty_2 = 53; -pub const JS_ATOM_stack: _bindgen_ty_2 = 54; -pub const JS_ATOM_name: _bindgen_ty_2 = 55; -pub const JS_ATOM_toString: _bindgen_ty_2 = 56; -pub const JS_ATOM_toLocaleString: _bindgen_ty_2 = 57; -pub const JS_ATOM_valueOf: _bindgen_ty_2 = 58; -pub const JS_ATOM_eval: _bindgen_ty_2 = 59; -pub const JS_ATOM_prototype: _bindgen_ty_2 = 60; -pub const JS_ATOM_constructor: _bindgen_ty_2 = 61; -pub const JS_ATOM_configurable: _bindgen_ty_2 = 62; -pub const JS_ATOM_writable: _bindgen_ty_2 = 63; -pub const JS_ATOM_enumerable: _bindgen_ty_2 = 64; -pub const JS_ATOM_value: _bindgen_ty_2 = 65; -pub const JS_ATOM_get: _bindgen_ty_2 = 66; -pub const JS_ATOM_set: _bindgen_ty_2 = 67; -pub const JS_ATOM_of: _bindgen_ty_2 = 68; -pub const JS_ATOM___proto__: _bindgen_ty_2 = 69; -pub const JS_ATOM_undefined: _bindgen_ty_2 = 70; -pub const JS_ATOM_number: _bindgen_ty_2 = 71; -pub const JS_ATOM_boolean: _bindgen_ty_2 = 72; -pub const JS_ATOM_string: _bindgen_ty_2 = 73; -pub const JS_ATOM_object: _bindgen_ty_2 = 74; -pub const JS_ATOM_symbol: _bindgen_ty_2 = 75; -pub const JS_ATOM_integer: _bindgen_ty_2 = 76; -pub const JS_ATOM_unknown: _bindgen_ty_2 = 77; -pub const JS_ATOM_arguments: _bindgen_ty_2 = 78; -pub const JS_ATOM_callee: _bindgen_ty_2 = 79; -pub const JS_ATOM_caller: _bindgen_ty_2 = 80; -pub const JS_ATOM__eval_: _bindgen_ty_2 = 81; -pub const JS_ATOM__ret_: _bindgen_ty_2 = 82; -pub const JS_ATOM__var_: _bindgen_ty_2 = 83; -pub const JS_ATOM__arg_var_: _bindgen_ty_2 = 84; -pub const JS_ATOM__with_: _bindgen_ty_2 = 85; -pub const JS_ATOM_lastIndex: _bindgen_ty_2 = 86; -pub const JS_ATOM_target: _bindgen_ty_2 = 87; -pub const JS_ATOM_index: _bindgen_ty_2 = 88; -pub const JS_ATOM_input: _bindgen_ty_2 = 89; -pub const JS_ATOM_defineProperties: _bindgen_ty_2 = 90; -pub const JS_ATOM_apply: _bindgen_ty_2 = 91; -pub const JS_ATOM_join: _bindgen_ty_2 = 92; -pub const JS_ATOM_concat: _bindgen_ty_2 = 93; -pub const JS_ATOM_split: _bindgen_ty_2 = 94; -pub const JS_ATOM_construct: _bindgen_ty_2 = 95; -pub const JS_ATOM_getPrototypeOf: _bindgen_ty_2 = 96; -pub const JS_ATOM_setPrototypeOf: _bindgen_ty_2 = 97; -pub const JS_ATOM_isExtensible: _bindgen_ty_2 = 98; -pub const JS_ATOM_preventExtensions: _bindgen_ty_2 = 99; -pub const JS_ATOM_has: _bindgen_ty_2 = 100; -pub const JS_ATOM_deleteProperty: _bindgen_ty_2 = 101; -pub const JS_ATOM_defineProperty: _bindgen_ty_2 = 102; -pub const JS_ATOM_getOwnPropertyDescriptor: _bindgen_ty_2 = 103; -pub const JS_ATOM_ownKeys: _bindgen_ty_2 = 104; -pub const JS_ATOM_add: _bindgen_ty_2 = 105; -pub const JS_ATOM_done: _bindgen_ty_2 = 106; -pub const JS_ATOM_next: _bindgen_ty_2 = 107; -pub const JS_ATOM_values: _bindgen_ty_2 = 108; -pub const JS_ATOM_source: _bindgen_ty_2 = 109; -pub const JS_ATOM_flags: _bindgen_ty_2 = 110; -pub const JS_ATOM_global: _bindgen_ty_2 = 111; -pub const JS_ATOM_unicode: _bindgen_ty_2 = 112; -pub const JS_ATOM_raw: _bindgen_ty_2 = 113; -pub const JS_ATOM_new_target: _bindgen_ty_2 = 114; -pub const JS_ATOM_this_active_func: _bindgen_ty_2 = 115; -pub const JS_ATOM_home_object: _bindgen_ty_2 = 116; -pub const JS_ATOM_computed_field: _bindgen_ty_2 = 117; -pub const JS_ATOM_static_computed_field: _bindgen_ty_2 = 118; -pub const JS_ATOM_class_fields_init: _bindgen_ty_2 = 119; -pub const JS_ATOM_brand: _bindgen_ty_2 = 120; -pub const JS_ATOM_hash_constructor: _bindgen_ty_2 = 121; -pub const JS_ATOM_as: _bindgen_ty_2 = 122; -pub const JS_ATOM_from: _bindgen_ty_2 = 123; -pub const JS_ATOM_meta: _bindgen_ty_2 = 124; -pub const JS_ATOM__default_: _bindgen_ty_2 = 125; -pub const JS_ATOM__star_: _bindgen_ty_2 = 126; -pub const JS_ATOM_Module: _bindgen_ty_2 = 127; -pub const JS_ATOM_then: _bindgen_ty_2 = 128; -pub const JS_ATOM_resolve: _bindgen_ty_2 = 129; -pub const JS_ATOM_reject: _bindgen_ty_2 = 130; -pub const JS_ATOM_promise: _bindgen_ty_2 = 131; -pub const JS_ATOM_proxy: _bindgen_ty_2 = 132; -pub const JS_ATOM_revoke: _bindgen_ty_2 = 133; -pub const JS_ATOM_async: _bindgen_ty_2 = 134; -pub const JS_ATOM_exec: _bindgen_ty_2 = 135; -pub const JS_ATOM_groups: _bindgen_ty_2 = 136; -pub const JS_ATOM_indices: _bindgen_ty_2 = 137; -pub const JS_ATOM_status: _bindgen_ty_2 = 138; -pub const JS_ATOM_reason: _bindgen_ty_2 = 139; -pub const JS_ATOM_globalThis: _bindgen_ty_2 = 140; -pub const JS_ATOM_bigint: _bindgen_ty_2 = 141; -pub const JS_ATOM_not_equal: _bindgen_ty_2 = 142; -pub const JS_ATOM_timed_out: _bindgen_ty_2 = 143; -pub const JS_ATOM_ok: _bindgen_ty_2 = 144; -pub const JS_ATOM_toJSON: _bindgen_ty_2 = 145; -pub const JS_ATOM_maxByteLength: _bindgen_ty_2 = 146; -pub const JS_ATOM_Object: _bindgen_ty_2 = 147; -pub const JS_ATOM_Array: _bindgen_ty_2 = 148; -pub const JS_ATOM_Error: _bindgen_ty_2 = 149; -pub const JS_ATOM_Number: _bindgen_ty_2 = 150; -pub const JS_ATOM_String: _bindgen_ty_2 = 151; -pub const JS_ATOM_Boolean: _bindgen_ty_2 = 152; -pub const JS_ATOM_Symbol: _bindgen_ty_2 = 153; -pub const JS_ATOM_Arguments: _bindgen_ty_2 = 154; -pub const JS_ATOM_Math: _bindgen_ty_2 = 155; -pub const JS_ATOM_JSON: _bindgen_ty_2 = 156; -pub const JS_ATOM_Date: _bindgen_ty_2 = 157; -pub const JS_ATOM_Function: _bindgen_ty_2 = 158; -pub const JS_ATOM_GeneratorFunction: _bindgen_ty_2 = 159; -pub const JS_ATOM_ForInIterator: _bindgen_ty_2 = 160; -pub const JS_ATOM_RegExp: _bindgen_ty_2 = 161; -pub const JS_ATOM_ArrayBuffer: _bindgen_ty_2 = 162; -pub const JS_ATOM_SharedArrayBuffer: _bindgen_ty_2 = 163; -pub const JS_ATOM_Uint8ClampedArray: _bindgen_ty_2 = 164; -pub const JS_ATOM_Int8Array: _bindgen_ty_2 = 165; -pub const JS_ATOM_Uint8Array: _bindgen_ty_2 = 166; -pub const JS_ATOM_Int16Array: _bindgen_ty_2 = 167; -pub const JS_ATOM_Uint16Array: _bindgen_ty_2 = 168; -pub const JS_ATOM_Int32Array: _bindgen_ty_2 = 169; -pub const JS_ATOM_Uint32Array: _bindgen_ty_2 = 170; -pub const JS_ATOM_BigInt64Array: _bindgen_ty_2 = 171; -pub const JS_ATOM_BigUint64Array: _bindgen_ty_2 = 172; -pub const JS_ATOM_Float16Array: _bindgen_ty_2 = 173; -pub const JS_ATOM_Float32Array: _bindgen_ty_2 = 174; -pub const JS_ATOM_Float64Array: _bindgen_ty_2 = 175; -pub const JS_ATOM_DataView: _bindgen_ty_2 = 176; -pub const JS_ATOM_BigInt: _bindgen_ty_2 = 177; -pub const JS_ATOM_WeakRef: _bindgen_ty_2 = 178; -pub const JS_ATOM_FinalizationRegistry: _bindgen_ty_2 = 179; -pub const JS_ATOM_Map: _bindgen_ty_2 = 180; -pub const JS_ATOM_Set: _bindgen_ty_2 = 181; -pub const JS_ATOM_WeakMap: _bindgen_ty_2 = 182; -pub const JS_ATOM_WeakSet: _bindgen_ty_2 = 183; -pub const JS_ATOM_Iterator: _bindgen_ty_2 = 184; -pub const JS_ATOM_IteratorHelper: _bindgen_ty_2 = 185; -pub const JS_ATOM_IteratorWrap: _bindgen_ty_2 = 186; -pub const JS_ATOM_Map_Iterator: _bindgen_ty_2 = 187; -pub const JS_ATOM_Set_Iterator: _bindgen_ty_2 = 188; -pub const JS_ATOM_Array_Iterator: _bindgen_ty_2 = 189; -pub const JS_ATOM_String_Iterator: _bindgen_ty_2 = 190; -pub const JS_ATOM_RegExp_String_Iterator: _bindgen_ty_2 = 191; -pub const JS_ATOM_Generator: _bindgen_ty_2 = 192; -pub const JS_ATOM_Proxy: _bindgen_ty_2 = 193; -pub const JS_ATOM_Promise: _bindgen_ty_2 = 194; -pub const JS_ATOM_PromiseResolveFunction: _bindgen_ty_2 = 195; -pub const JS_ATOM_PromiseRejectFunction: _bindgen_ty_2 = 196; -pub const JS_ATOM_AsyncFunction: _bindgen_ty_2 = 197; -pub const JS_ATOM_AsyncFunctionResolve: _bindgen_ty_2 = 198; -pub const JS_ATOM_AsyncFunctionReject: _bindgen_ty_2 = 199; -pub const JS_ATOM_AsyncGeneratorFunction: _bindgen_ty_2 = 200; -pub const JS_ATOM_AsyncGenerator: _bindgen_ty_2 = 201; -pub const JS_ATOM_EvalError: _bindgen_ty_2 = 202; -pub const JS_ATOM_RangeError: _bindgen_ty_2 = 203; -pub const JS_ATOM_ReferenceError: _bindgen_ty_2 = 204; -pub const JS_ATOM_SyntaxError: _bindgen_ty_2 = 205; -pub const JS_ATOM_TypeError: _bindgen_ty_2 = 206; -pub const JS_ATOM_URIError: _bindgen_ty_2 = 207; -pub const JS_ATOM_InternalError: _bindgen_ty_2 = 208; -pub const JS_ATOM_CallSite: _bindgen_ty_2 = 209; -pub const JS_ATOM_Private_brand: _bindgen_ty_2 = 210; -pub const JS_ATOM_Symbol_toPrimitive: _bindgen_ty_2 = 211; -pub const JS_ATOM_Symbol_iterator: _bindgen_ty_2 = 212; -pub const JS_ATOM_Symbol_match: _bindgen_ty_2 = 213; -pub const JS_ATOM_Symbol_matchAll: _bindgen_ty_2 = 214; -pub const JS_ATOM_Symbol_replace: _bindgen_ty_2 = 215; -pub const JS_ATOM_Symbol_search: _bindgen_ty_2 = 216; -pub const JS_ATOM_Symbol_split: _bindgen_ty_2 = 217; -pub const JS_ATOM_Symbol_toStringTag: _bindgen_ty_2 = 218; -pub const JS_ATOM_Symbol_isConcatSpreadable: _bindgen_ty_2 = 219; -pub const JS_ATOM_Symbol_hasInstance: _bindgen_ty_2 = 220; -pub const JS_ATOM_Symbol_species: _bindgen_ty_2 = 221; -pub const JS_ATOM_Symbol_unscopables: _bindgen_ty_2 = 222; -pub const JS_ATOM_Symbol_asyncIterator: _bindgen_ty_2 = 223; -pub const JS_ATOM_END: _bindgen_ty_2 = 224; -pub type _bindgen_ty_2 = ::std::os::raw::c_uint; +pub const __JS_ATOM_NULL: _bindgen_ty_4 = 0; +pub const JS_ATOM_null: _bindgen_ty_4 = 1; +pub const JS_ATOM_false: _bindgen_ty_4 = 2; +pub const JS_ATOM_true: _bindgen_ty_4 = 3; +pub const JS_ATOM_if: _bindgen_ty_4 = 4; +pub const JS_ATOM_else: _bindgen_ty_4 = 5; +pub const JS_ATOM_return: _bindgen_ty_4 = 6; +pub const JS_ATOM_var: _bindgen_ty_4 = 7; +pub const JS_ATOM_this: _bindgen_ty_4 = 8; +pub const JS_ATOM_delete: _bindgen_ty_4 = 9; +pub const JS_ATOM_void: _bindgen_ty_4 = 10; +pub const JS_ATOM_typeof: _bindgen_ty_4 = 11; +pub const JS_ATOM_new: _bindgen_ty_4 = 12; +pub const JS_ATOM_in: _bindgen_ty_4 = 13; +pub const JS_ATOM_instanceof: _bindgen_ty_4 = 14; +pub const JS_ATOM_do: _bindgen_ty_4 = 15; +pub const JS_ATOM_while: _bindgen_ty_4 = 16; +pub const JS_ATOM_for: _bindgen_ty_4 = 17; +pub const JS_ATOM_break: _bindgen_ty_4 = 18; +pub const JS_ATOM_continue: _bindgen_ty_4 = 19; +pub const JS_ATOM_switch: _bindgen_ty_4 = 20; +pub const JS_ATOM_case: _bindgen_ty_4 = 21; +pub const JS_ATOM_default: _bindgen_ty_4 = 22; +pub const JS_ATOM_throw: _bindgen_ty_4 = 23; +pub const JS_ATOM_try: _bindgen_ty_4 = 24; +pub const JS_ATOM_catch: _bindgen_ty_4 = 25; +pub const JS_ATOM_finally: _bindgen_ty_4 = 26; +pub const JS_ATOM_function: _bindgen_ty_4 = 27; +pub const JS_ATOM_debugger: _bindgen_ty_4 = 28; +pub const JS_ATOM_with: _bindgen_ty_4 = 29; +pub const JS_ATOM_class: _bindgen_ty_4 = 30; +pub const JS_ATOM_const: _bindgen_ty_4 = 31; +pub const JS_ATOM_enum: _bindgen_ty_4 = 32; +pub const JS_ATOM_export: _bindgen_ty_4 = 33; +pub const JS_ATOM_extends: _bindgen_ty_4 = 34; +pub const JS_ATOM_import: _bindgen_ty_4 = 35; +pub const JS_ATOM_super: _bindgen_ty_4 = 36; +pub const JS_ATOM_implements: _bindgen_ty_4 = 37; +pub const JS_ATOM_interface: _bindgen_ty_4 = 38; +pub const JS_ATOM_let: _bindgen_ty_4 = 39; +pub const JS_ATOM_package: _bindgen_ty_4 = 40; +pub const JS_ATOM_private: _bindgen_ty_4 = 41; +pub const JS_ATOM_protected: _bindgen_ty_4 = 42; +pub const JS_ATOM_public: _bindgen_ty_4 = 43; +pub const JS_ATOM_static: _bindgen_ty_4 = 44; +pub const JS_ATOM_yield: _bindgen_ty_4 = 45; +pub const JS_ATOM_await: _bindgen_ty_4 = 46; +pub const JS_ATOM_empty_string: _bindgen_ty_4 = 47; +pub const JS_ATOM_keys: _bindgen_ty_4 = 48; +pub const JS_ATOM_size: _bindgen_ty_4 = 49; +pub const JS_ATOM_length: _bindgen_ty_4 = 50; +pub const JS_ATOM_message: _bindgen_ty_4 = 51; +pub const JS_ATOM_cause: _bindgen_ty_4 = 52; +pub const JS_ATOM_errors: _bindgen_ty_4 = 53; +pub const JS_ATOM_stack: _bindgen_ty_4 = 54; +pub const JS_ATOM_name: _bindgen_ty_4 = 55; +pub const JS_ATOM_toString: _bindgen_ty_4 = 56; +pub const JS_ATOM_toLocaleString: _bindgen_ty_4 = 57; +pub const JS_ATOM_valueOf: _bindgen_ty_4 = 58; +pub const JS_ATOM_eval: _bindgen_ty_4 = 59; +pub const JS_ATOM_prototype: _bindgen_ty_4 = 60; +pub const JS_ATOM_constructor: _bindgen_ty_4 = 61; +pub const JS_ATOM_configurable: _bindgen_ty_4 = 62; +pub const JS_ATOM_writable: _bindgen_ty_4 = 63; +pub const JS_ATOM_enumerable: _bindgen_ty_4 = 64; +pub const JS_ATOM_value: _bindgen_ty_4 = 65; +pub const JS_ATOM_get: _bindgen_ty_4 = 66; +pub const JS_ATOM_set: _bindgen_ty_4 = 67; +pub const JS_ATOM_of: _bindgen_ty_4 = 68; +pub const JS_ATOM___proto__: _bindgen_ty_4 = 69; +pub const JS_ATOM_undefined: _bindgen_ty_4 = 70; +pub const JS_ATOM_number: _bindgen_ty_4 = 71; +pub const JS_ATOM_boolean: _bindgen_ty_4 = 72; +pub const JS_ATOM_string: _bindgen_ty_4 = 73; +pub const JS_ATOM_object: _bindgen_ty_4 = 74; +pub const JS_ATOM_symbol: _bindgen_ty_4 = 75; +pub const JS_ATOM_integer: _bindgen_ty_4 = 76; +pub const JS_ATOM_unknown: _bindgen_ty_4 = 77; +pub const JS_ATOM_arguments: _bindgen_ty_4 = 78; +pub const JS_ATOM_callee: _bindgen_ty_4 = 79; +pub const JS_ATOM_caller: _bindgen_ty_4 = 80; +pub const JS_ATOM__eval_: _bindgen_ty_4 = 81; +pub const JS_ATOM__ret_: _bindgen_ty_4 = 82; +pub const JS_ATOM__var_: _bindgen_ty_4 = 83; +pub const JS_ATOM__arg_var_: _bindgen_ty_4 = 84; +pub const JS_ATOM__with_: _bindgen_ty_4 = 85; +pub const JS_ATOM_lastIndex: _bindgen_ty_4 = 86; +pub const JS_ATOM_target: _bindgen_ty_4 = 87; +pub const JS_ATOM_index: _bindgen_ty_4 = 88; +pub const JS_ATOM_input: _bindgen_ty_4 = 89; +pub const JS_ATOM_defineProperties: _bindgen_ty_4 = 90; +pub const JS_ATOM_apply: _bindgen_ty_4 = 91; +pub const JS_ATOM_join: _bindgen_ty_4 = 92; +pub const JS_ATOM_concat: _bindgen_ty_4 = 93; +pub const JS_ATOM_split: _bindgen_ty_4 = 94; +pub const JS_ATOM_construct: _bindgen_ty_4 = 95; +pub const JS_ATOM_getPrototypeOf: _bindgen_ty_4 = 96; +pub const JS_ATOM_setPrototypeOf: _bindgen_ty_4 = 97; +pub const JS_ATOM_isExtensible: _bindgen_ty_4 = 98; +pub const JS_ATOM_preventExtensions: _bindgen_ty_4 = 99; +pub const JS_ATOM_has: _bindgen_ty_4 = 100; +pub const JS_ATOM_deleteProperty: _bindgen_ty_4 = 101; +pub const JS_ATOM_defineProperty: _bindgen_ty_4 = 102; +pub const JS_ATOM_getOwnPropertyDescriptor: _bindgen_ty_4 = 103; +pub const JS_ATOM_ownKeys: _bindgen_ty_4 = 104; +pub const JS_ATOM_add: _bindgen_ty_4 = 105; +pub const JS_ATOM_done: _bindgen_ty_4 = 106; +pub const JS_ATOM_next: _bindgen_ty_4 = 107; +pub const JS_ATOM_values: _bindgen_ty_4 = 108; +pub const JS_ATOM_source: _bindgen_ty_4 = 109; +pub const JS_ATOM_flags: _bindgen_ty_4 = 110; +pub const JS_ATOM_global: _bindgen_ty_4 = 111; +pub const JS_ATOM_unicode: _bindgen_ty_4 = 112; +pub const JS_ATOM_raw: _bindgen_ty_4 = 113; +pub const JS_ATOM_new_target: _bindgen_ty_4 = 114; +pub const JS_ATOM_this_active_func: _bindgen_ty_4 = 115; +pub const JS_ATOM_home_object: _bindgen_ty_4 = 116; +pub const JS_ATOM_computed_field: _bindgen_ty_4 = 117; +pub const JS_ATOM_static_computed_field: _bindgen_ty_4 = 118; +pub const JS_ATOM_class_fields_init: _bindgen_ty_4 = 119; +pub const JS_ATOM_brand: _bindgen_ty_4 = 120; +pub const JS_ATOM_hash_constructor: _bindgen_ty_4 = 121; +pub const JS_ATOM_as: _bindgen_ty_4 = 122; +pub const JS_ATOM_from: _bindgen_ty_4 = 123; +pub const JS_ATOM_meta: _bindgen_ty_4 = 124; +pub const JS_ATOM__default_: _bindgen_ty_4 = 125; +pub const JS_ATOM__star_: _bindgen_ty_4 = 126; +pub const JS_ATOM_Module: _bindgen_ty_4 = 127; +pub const JS_ATOM_then: _bindgen_ty_4 = 128; +pub const JS_ATOM_resolve: _bindgen_ty_4 = 129; +pub const JS_ATOM_reject: _bindgen_ty_4 = 130; +pub const JS_ATOM_promise: _bindgen_ty_4 = 131; +pub const JS_ATOM_proxy: _bindgen_ty_4 = 132; +pub const JS_ATOM_revoke: _bindgen_ty_4 = 133; +pub const JS_ATOM_async: _bindgen_ty_4 = 134; +pub const JS_ATOM_exec: _bindgen_ty_4 = 135; +pub const JS_ATOM_groups: _bindgen_ty_4 = 136; +pub const JS_ATOM_indices: _bindgen_ty_4 = 137; +pub const JS_ATOM_status: _bindgen_ty_4 = 138; +pub const JS_ATOM_reason: _bindgen_ty_4 = 139; +pub const JS_ATOM_globalThis: _bindgen_ty_4 = 140; +pub const JS_ATOM_bigint: _bindgen_ty_4 = 141; +pub const JS_ATOM_not_equal: _bindgen_ty_4 = 142; +pub const JS_ATOM_timed_out: _bindgen_ty_4 = 143; +pub const JS_ATOM_ok: _bindgen_ty_4 = 144; +pub const JS_ATOM_toJSON: _bindgen_ty_4 = 145; +pub const JS_ATOM_maxByteLength: _bindgen_ty_4 = 146; +pub const JS_ATOM_Object: _bindgen_ty_4 = 147; +pub const JS_ATOM_Array: _bindgen_ty_4 = 148; +pub const JS_ATOM_Error: _bindgen_ty_4 = 149; +pub const JS_ATOM_Number: _bindgen_ty_4 = 150; +pub const JS_ATOM_String: _bindgen_ty_4 = 151; +pub const JS_ATOM_Boolean: _bindgen_ty_4 = 152; +pub const JS_ATOM_Symbol: _bindgen_ty_4 = 153; +pub const JS_ATOM_Arguments: _bindgen_ty_4 = 154; +pub const JS_ATOM_Math: _bindgen_ty_4 = 155; +pub const JS_ATOM_JSON: _bindgen_ty_4 = 156; +pub const JS_ATOM_Date: _bindgen_ty_4 = 157; +pub const JS_ATOM_Function: _bindgen_ty_4 = 158; +pub const JS_ATOM_GeneratorFunction: _bindgen_ty_4 = 159; +pub const JS_ATOM_ForInIterator: _bindgen_ty_4 = 160; +pub const JS_ATOM_RegExp: _bindgen_ty_4 = 161; +pub const JS_ATOM_ArrayBuffer: _bindgen_ty_4 = 162; +pub const JS_ATOM_SharedArrayBuffer: _bindgen_ty_4 = 163; +pub const JS_ATOM_Uint8ClampedArray: _bindgen_ty_4 = 164; +pub const JS_ATOM_Int8Array: _bindgen_ty_4 = 165; +pub const JS_ATOM_Uint8Array: _bindgen_ty_4 = 166; +pub const JS_ATOM_Int16Array: _bindgen_ty_4 = 167; +pub const JS_ATOM_Uint16Array: _bindgen_ty_4 = 168; +pub const JS_ATOM_Int32Array: _bindgen_ty_4 = 169; +pub const JS_ATOM_Uint32Array: _bindgen_ty_4 = 170; +pub const JS_ATOM_BigInt64Array: _bindgen_ty_4 = 171; +pub const JS_ATOM_BigUint64Array: _bindgen_ty_4 = 172; +pub const JS_ATOM_Float16Array: _bindgen_ty_4 = 173; +pub const JS_ATOM_Float32Array: _bindgen_ty_4 = 174; +pub const JS_ATOM_Float64Array: _bindgen_ty_4 = 175; +pub const JS_ATOM_DataView: _bindgen_ty_4 = 176; +pub const JS_ATOM_BigInt: _bindgen_ty_4 = 177; +pub const JS_ATOM_WeakRef: _bindgen_ty_4 = 178; +pub const JS_ATOM_FinalizationRegistry: _bindgen_ty_4 = 179; +pub const JS_ATOM_Map: _bindgen_ty_4 = 180; +pub const JS_ATOM_Set: _bindgen_ty_4 = 181; +pub const JS_ATOM_WeakMap: _bindgen_ty_4 = 182; +pub const JS_ATOM_WeakSet: _bindgen_ty_4 = 183; +pub const JS_ATOM_Iterator: _bindgen_ty_4 = 184; +pub const JS_ATOM_IteratorHelper: _bindgen_ty_4 = 185; +pub const JS_ATOM_IteratorWrap: _bindgen_ty_4 = 186; +pub const JS_ATOM_Map_Iterator: _bindgen_ty_4 = 187; +pub const JS_ATOM_Set_Iterator: _bindgen_ty_4 = 188; +pub const JS_ATOM_Array_Iterator: _bindgen_ty_4 = 189; +pub const JS_ATOM_String_Iterator: _bindgen_ty_4 = 190; +pub const JS_ATOM_RegExp_String_Iterator: _bindgen_ty_4 = 191; +pub const JS_ATOM_Generator: _bindgen_ty_4 = 192; +pub const JS_ATOM_Proxy: _bindgen_ty_4 = 193; +pub const JS_ATOM_Promise: _bindgen_ty_4 = 194; +pub const JS_ATOM_PromiseResolveFunction: _bindgen_ty_4 = 195; +pub const JS_ATOM_PromiseRejectFunction: _bindgen_ty_4 = 196; +pub const JS_ATOM_AsyncFunction: _bindgen_ty_4 = 197; +pub const JS_ATOM_AsyncFunctionResolve: _bindgen_ty_4 = 198; +pub const JS_ATOM_AsyncFunctionReject: _bindgen_ty_4 = 199; +pub const JS_ATOM_AsyncGeneratorFunction: _bindgen_ty_4 = 200; +pub const JS_ATOM_AsyncGenerator: _bindgen_ty_4 = 201; +pub const JS_ATOM_EvalError: _bindgen_ty_4 = 202; +pub const JS_ATOM_RangeError: _bindgen_ty_4 = 203; +pub const JS_ATOM_ReferenceError: _bindgen_ty_4 = 204; +pub const JS_ATOM_SyntaxError: _bindgen_ty_4 = 205; +pub const JS_ATOM_TypeError: _bindgen_ty_4 = 206; +pub const JS_ATOM_URIError: _bindgen_ty_4 = 207; +pub const JS_ATOM_InternalError: _bindgen_ty_4 = 208; +pub const JS_ATOM_CallSite: _bindgen_ty_4 = 209; +pub const JS_ATOM_Private_brand: _bindgen_ty_4 = 210; +pub const JS_ATOM_Symbol_toPrimitive: _bindgen_ty_4 = 211; +pub const JS_ATOM_Symbol_iterator: _bindgen_ty_4 = 212; +pub const JS_ATOM_Symbol_match: _bindgen_ty_4 = 213; +pub const JS_ATOM_Symbol_matchAll: _bindgen_ty_4 = 214; +pub const JS_ATOM_Symbol_replace: _bindgen_ty_4 = 215; +pub const JS_ATOM_Symbol_search: _bindgen_ty_4 = 216; +pub const JS_ATOM_Symbol_split: _bindgen_ty_4 = 217; +pub const JS_ATOM_Symbol_toStringTag: _bindgen_ty_4 = 218; +pub const JS_ATOM_Symbol_isConcatSpreadable: _bindgen_ty_4 = 219; +pub const JS_ATOM_Symbol_hasInstance: _bindgen_ty_4 = 220; +pub const JS_ATOM_Symbol_species: _bindgen_ty_4 = 221; +pub const JS_ATOM_Symbol_unscopables: _bindgen_ty_4 = 222; +pub const JS_ATOM_Symbol_asyncIterator: _bindgen_ty_4 = 223; +pub const JS_ATOM_END: _bindgen_ty_4 = 224; +pub type _bindgen_ty_4 = ::std::os::raw::c_uint;