servo/components/script_bindings
Jo Steven Novaryo 3ce95b2ba5
script: Impl safe from_jsval wrapper (#38149)
Implement `SafeFromJSValConvertible`, a safe wrapper for
`ToJSValConvertible`. And, replace unsafe `ToJSValConvertible` with
`SafeFromJSValConvertible` in `script/dom` to reduce the amount of
unsafe code in `script`.

This would support the implementation of `AdoptedStylesheet` where we
will need to have a setter/getter of sequence, that was implemented by
`any` types.

Part of https://github.com/servo/servo/issues/37951

Signed-off-by: Jo Steven Novaryo <jo.steven.novaryo@huawei.com>
2025-07-17 19:32:36 +00:00
..
codegen
webidls
build.rs
callback.rs
Cargo.toml
constant.rs
constructor.rs
conversions.rs script: Impl safe from_jsval wrapper (#38149) 2025-07-17 19:32:36 +00:00
error.rs
finalize.rs
guard.rs
import.rs
inheritance.rs
interface.rs
interfaces.rs
iterable.rs
lib.rs
like.rs
lock.rs
mem.rs
namespace.rs
num.rs
principals.rs
proxyhandler.rs
realms.rs
record.rs
reflector.rs
root.rs
script_runtime.rs
settings_stack.rs
str.rs
trace.rs
utils.rs
weakref.rs