Skip to content

Commit

Permalink
Merge pull request #414 from DelSkayn/update-bindings
Browse files Browse the repository at this point in the history
Update bindings
  • Loading branch information
DelSkayn authored Jan 21, 2025
2 parents 05bc424 + 7133bba commit a39e7b9
Show file tree
Hide file tree
Showing 13 changed files with 1,300 additions and 742 deletions.
30 changes: 30 additions & 0 deletions sys/src/bindings/aarch64-apple-darwin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Loading

0 comments on commit a39e7b9

Please sign in to comment.