servo/components/script/dom/bindings/codegen
Josh Matthews 25a0764a37
Use out parameter for generated methods returning JSVal (#34087)
* Make generated bindings that return a WebIDL `any` value use out parameters.

Returning raw JSVal values makes it easier to create GC hazards in code
that calls these methods. Accepting a MutableHandle argument instead
ensures that the values are rooted by the caller.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Update mozjs.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Fix clippy warnings.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2024-11-05 08:29:08 +00:00
..
api.html.template Generate a list of supported DOM APIs from parsed WebIDLs. 2016-07-15 18:13:09 -04:00
apis.html.template Generate a list of supported DOM APIs from parsed WebIDLs. 2016-07-15 18:13:09 -04:00
Bindings.conf Implement SubtleCrypto.digest (#34034) 2024-10-30 02:06:02 +00:00
CodegenRust.py Use out parameter for generated methods returning JSVal (#34087) 2024-11-05 08:29:08 +00:00
Configuration.py Propagate CanGc from Document::new() (#33386) 2024-09-09 22:38:01 +00:00
interface.html.template Generate a list of supported DOM APIs from parsed WebIDLs. 2016-07-15 18:13:09 -04:00
property.html.template Generate a list of supported DOM APIs from parsed WebIDLs. 2016-07-15 18:13:09 -04:00
run.py Revert "script: implement AbortController (#31361)" (#32243) 2024-05-07 06:23:14 +00:00