aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorArya Nair <aryaajitnair@gmail.com>2025-03-26 00:54:47 +0530
committerGitHub <noreply@github.com>2025-03-25 19:24:47 +0000
commit80fc64d0631244b4e165ecd1151b079bdfc2a2a4 (patch)
treeb2c9c622234243150e54d6a4b49745c02e3f273b /components/script_bindings/codegen/CodegenRust.py
parent5a5e49ce47677eab0985cf2407a33051972178a3 (diff)
downloadservo-80fc64d0631244b4e165ecd1151b079bdfc2a2a4.tar.gz
servo-80fc64d0631244b4e165ecd1151b079bdfc2a2a4.zip
feat: add CanGc argument in get_dictionary_property (#36156)
* feat: add CanGc argument in get_dictionary_property Signed-off-by: Arya Nair <aryaajitnair@gmail.com> * feat: add CanGc argument in get_dictionary_property Signed-off-by: Arya Nair <aryaajitnair@gmail.com> --------- Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
Diffstat (limited to 'components/script_bindings/codegen/CodegenRust.py')
-rw-r--r--components/script_bindings/codegen/CodegenRust.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script_bindings/codegen/CodegenRust.py b/components/script_bindings/codegen/CodegenRust.py
index f7539d5b24d..adb9accf892 100644
--- a/components/script_bindings/codegen/CodegenRust.py
+++ b/components/script_bindings/codegen/CodegenRust.py
@@ -7394,8 +7394,9 @@ impl{self.generic} Clone for {self.makeClassName(self.dictionary)}{self.genericS
conversion = (
"{\n"
" rooted!(in(*cx) let mut rval = UndefinedValue());\n"
- f' if get_dictionary_property(*cx, object.handle(), "{member.identifier.name}", rval.handle_mut())?'
- " && !rval.is_undefined() {\n"
+ " if get_dictionary_property(*cx, object.handle(), "
+ f'"{member.identifier.name}", '
+ "rval.handle_mut(), CanGc::note())? && !rval.is_undefined() {\n"
f"{indent(conversion)}\n"
" } else {\n"
f"{indent(default)}\n"