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

Commit c16e7e2

Browse files
author
bors-servo
authored
Auto merge of #445 - CYBAI:reexport-intohandle, r=asajeffrey
Re-export IntoHandle When implementing `rejectionhandled` event, we'll need to add consumed rejection in task and we'll need to convert `HandleObject` into `RawHandleObject` which is `js::jsapi::HandleObject`. With exporting this trait, we can leverage the power of `into_handle` to do the conversion instead of writing a new method to get the `RawHandleObject`. <!-- 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/445) <!-- Reviewable:end -->
2 parents 27359aa + 9d5d8a9 commit c16e7e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+1-1
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.3"
5+
version = "0.9.4"
66
authors = ["The Servo Project Developers"]
77
build = "build.rs"
88
license = "MPL-2.0"

src/rust.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ use panic::maybe_resume_unwind;
6868

6969
use default_heapsize;
7070

71-
pub use mozjs_sys::jsgc::GCMethods;
71+
pub use mozjs_sys::jsgc::{GCMethods, IntoHandle};
7272

7373
// From Gecko:
7474
// Our "default" stack is what we use in configurations where we don't have a compelling reason to
@@ -1468,4 +1468,4 @@ pub mod jsapi_wrapped {
14681468
include!("jsapi_wrappers.in");
14691469
include!("glue_wrappers.in");
14701470
}
1471-
1471+

0 commit comments

Comments
 (0)