feat(script): enable js::ProxyOptions::setLazyProto for maybe-cross-origin objects

Setting the lazy proto option allows proxy handlers to provide dynamic
prototype objects. This is necessary for the customization of
`ProxyTraps::{get,set}PrototypeOf` to actually take effect.
This commit is contained in:
yvt 2021-07-17 12:04:31 +09:00
parent 722a239715
commit bdd20f0139
2 changed files with 15 additions and 3 deletions

2
Cargo.lock generated
View file

@ -3808,7 +3808,7 @@ dependencies = [
[[package]]
name = "mozjs"
version = "0.14.1"
source = "git+https://github.com/servo/rust-mozjs#2e4c6a82c9f94210da7c452bb29de210fb658c1a"
source = "git+https://github.com/servo/rust-mozjs#09edacd032fadc861b0cb3a70711a5c8a9bd7f8e"
dependencies = [
"cc",
"lazy_static",