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:
Koki Saito 2024-08-18 10:48:39 +09:00 committed by GitHub
parent 20273b062a
commit db312319ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 15 deletions

View file

@ -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;
}