aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorKoki Saito <saitoto828@gmail.com>2024-08-18 10:48:39 +0900
committerGitHub <noreply@github.com>2024-08-18 01:48:39 +0000
commitdb312319ae89989a94d2047b04d3d58809e8887b (patch)
tree20edea4a501af7ed259929574d2ca80efd2002bf /components/script/dom/bindings/codegen/CodegenRust.py
parent20273b062af969152635306c3df2a3a1364ac4d1 (diff)
downloadservo-db312319ae89989a94d2047b04d3d58809e8887b.tar.gz
servo-db312319ae89989a94d2047b04d3d58809e8887b.zip
fix: Replace callargs_is_constructing with is_constructing method (#33101)
Signed-off-by: Koki Saito <saitoto828@gmail.com> Co-authored-by: kokisaito <kosaito@indeed.com>
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 154ec01c7ae..475bde75d06 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -6283,7 +6283,7 @@ let global = DomRoot::downcast::<dom::types::%s>(global).unwrap();
else:
ctorName = GetConstructorNameForReporting(self.descriptor, self.constructor)
preamble += """
-if !callargs_is_constructing(&args) {
+if !args.is_constructing() {
throw_constructor_without_new(*cx, "%s");
return false;
}