mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
#42681 did not actually allowed using cx in Constructor, but it did most heavy lifting. Now we need to pass cx to Constructor call (and skip CanGc) if cx is requested in Bindings.conf. This PR also test this on testbindings. Also we now always use `let cx = &mut cx`, so we can always use just cx (compiler will automatically deref it into &cx if needed). This is important because codegen stuff is called from many places to it make sense/easier to just unify this. Testing: It compiles Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>