mirror of
https://github.com/servo/servo.git
synced 2025-07-25 00:00:20 +01:00
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>
This commit is contained in:
parent
20273b062a
commit
db312319ae
5 changed files with 10 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue