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

Commit 26b270d

Browse files
author
bors-servo
authored
Auto merge of #443 - CYBAI:getpromiseishandled, r=jdm
Introduce GetPromiseIsHandled Expose `GetPromiseIsHandled` API to `rust-mozjs`. This would be used in servo/servo#20755 for the step 4.1.1 for the spec of [notify about rejected promises](https://html.spec.whatwg.org/multipage/webappapis.html#notify-about-rejected-promises). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/443) <!-- Reviewable:end -->
2 parents 59a69a0 + b0073ef commit 26b270d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mozjs"
33
description = "Rust bindings to the Mozilla SpiderMonkey JavaScript engine."
44
repository = "https://github.com/servo/rust-mozjs"
5-
version = "0.9.2"
5+
version = "0.9.3"
66
authors = ["The Servo Project Developers"]
77
build = "build.rs"
88
license = "MPL-2.0"
@@ -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

+1
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)