This repository was archived by the owner on Nov 12, 2022. It is now read-only.
File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 2
2
name = " mozjs"
3
3
description = " Rust bindings to the Mozilla SpiderMonkey JavaScript engine."
4
4
repository = " https://github.com/servo/rust-mozjs"
5
- version = " 0.5.0 "
5
+ version = " 0.5.1 "
6
6
authors = [" The Servo Project Developers" ]
7
7
build = " build.rs"
8
8
license = " MPL-2.0"
Original file line number Diff line number Diff line change @@ -304,6 +304,11 @@ impl RootKind for Value {
304
304
fn rootKind ( ) -> jsapi:: RootKind { jsapi:: RootKind :: Value }
305
305
}
306
306
307
+ impl RootKind for PropertyDescriptor {
308
+ #[ inline( always) ]
309
+ fn rootKind ( ) -> jsapi:: RootKind { jsapi:: RootKind :: Traceable }
310
+ }
311
+
307
312
// Creates a C string literal `$str`.
308
313
macro_rules! c_str {
309
314
( $str: expr) => {
@@ -836,6 +841,11 @@ impl GCMethods for Value {
836
841
}
837
842
}
838
843
844
+ impl GCMethods for PropertyDescriptor {
845
+ unsafe fn initial ( ) -> PropertyDescriptor { PropertyDescriptor :: default ( ) }
846
+ unsafe fn post_barrier ( _ : * mut PropertyDescriptor , _ : PropertyDescriptor , _ : PropertyDescriptor ) { }
847
+ }
848
+
839
849
impl < T : GCMethods + Copy > Heap < T > {
840
850
/// This creates a `Box`-wrapped Heap value. Setting a value inside Heap
841
851
/// object triggers a barrier, referring to the Heap object location,
You can’t perform that action at this time.
0 commit comments