mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
This patch changes the method of `Crypto` interface to use the new `&mut JSContext`. The method `crypto.subtle` calls `SubtleCrypto::new` to create an instance of `SubtleCrypto` and the new `&mut JSContext` is passed to `SubtleCrypto::new`. Therefore, the new `reflect_dom_object_with_cx` method is also used in `SubtleCrypto::new`. Testing: Refactoring. Existing tests suffice. Fixes: Part of #42638 Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>