script: Support converting JS values to Rc<Promise> with FromJSValConvertible. (#36097)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2025-03-25 10:08:45 -04:00 committed by GitHub
parent f65b697a5a
commit f717f6b848
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 27 additions and 4 deletions

View file

@ -490,7 +490,7 @@ DOMInterfaces = {
'Promise': {
'spiderMonkeyInterface': True,
'additionalTraits': ["crate::dom::promise::PromiseHelpers<Self>"]
'additionalTraits': ["crate::dom::promise::PromiseHelpers<Self>", "js::conversions::FromJSValConvertibleRc"]
},
'Range': {

View file

@ -479,6 +479,7 @@ interface TestBinding {
sequence<sequence<long>> returnSequenceSequence();
undefined passUnionSequenceSequence((long or sequence<sequence<long>>) seq);
undefined passRecordPromise(record<DOMString, Promise<undefined>> arg);
undefined passRecord(record<DOMString, long> arg);
undefined passRecordWithUSVStringKey(record<USVString, long> arg);
undefined passRecordWithByteStringKey(record<ByteString, long> arg);