Add AsHandleValue trait to Heap<Value> and make Heap values rooted (#38024)

Encapsulates the unsafe conversion from Heap<Value> to HandleValue<'a>,
and reducing repetitive unsafe code at call.

fix #37258
This commit is contained in:
Taym Haddadi 2025-08-04 18:42:53 +02:00 committed by GitHub
parent 9416251cab
commit 04ec710e60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 204 additions and 146 deletions

4
Cargo.lock generated
View file

@ -5240,7 +5240,7 @@ dependencies = [
[[package]]
name = "mozjs"
version = "0.14.1"
source = "git+https://github.com/servo/mozjs#4035b0c4e9e2df5cacc68c4b71e7375a48605902"
source = "git+https://github.com/servo/mozjs#903a158b36c10902a40c7fda766406d698f98bf4"
dependencies = [
"bindgen 0.71.1",
"cc",
@ -5252,7 +5252,7 @@ dependencies = [
[[package]]
name = "mozjs_sys"
version = "0.128.13-3"
source = "git+https://github.com/servo/mozjs#4035b0c4e9e2df5cacc68c4b71e7375a48605902"
source = "git+https://github.com/servo/mozjs#903a158b36c10902a40c7fda766406d698f98bf4"
dependencies = [
"bindgen 0.71.1",
"cc",