Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit 6958d8a

Browse files
committed
Introduce GetPromiseIsHandled
1 parent 59a69a0 commit 6958d8a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ lazy_static = "1"
4848
libc = "0.2"
4949
log = "0.4"
5050
num-traits = "0.2"
51-
mozjs_sys = "0.61.0"
51+
mozjs_sys = "0.61.1"

src/jsapi_wrappers.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ wrap!(jsapi: pub fn IsPromiseObject(obj: HandleObject) -> bool);
6868
wrap!(jsapi: pub fn GetPromiseState(promise: HandleObject) -> PromiseState);
6969
wrap!(jsapi: pub fn GetPromiseID(promise: HandleObject) -> u64);
7070
wrap!(jsapi: pub fn GetPromiseResult(promise: HandleObject) -> Value);
71+
wrap!(jsapi: pub fn GetPromiseIsHandled(promise: HandleObject) -> bool);
7172
wrap!(jsapi: pub fn GetPromiseAllocationSite(promise: HandleObject) -> *mut JSObject);
7273
wrap!(jsapi: pub fn GetPromiseResolutionSite(promise: HandleObject) -> *mut JSObject);
7374
wrap!(jsapi: pub fn CallOriginalPromiseResolve(cx: *mut JSContext, resolutionValue: HandleValue) -> *mut JSObject);

0 commit comments

Comments
 (0)