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

@ -625,10 +625,6 @@ impl AsCCharPtrPtr for [u8] {
}
}
pub unsafe fn callargs_is_constructing(args: &CallArgs) -> bool {
(*args.argv_.offset(-1)).is_magic()
}
/// https://searchfox.org/mozilla-central/rev/7279a1df13a819be254fd4649e07c4ff93e4bd45/dom/bindings/BindingUtils.cpp#3300
pub unsafe extern "C" fn generic_static_promise_method(
cx: *mut JSContext,