mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
script: Add can_gc to WebIDL dictionary constructors (#39195)
More progress on can_gc! Testing: Internal change only, shouldn't change behavior. Fixes: #38708 --------- Signed-off-by: lumiscosity <averyrudelphe@gmail.com>
This commit is contained in:
parent
1b9dc3e672
commit
9584b9e57d
8 changed files with 26 additions and 17 deletions
|
@ -1973,7 +1973,7 @@ impl ReadableStreamMethods<crate::DomTypeHolder> for ReadableStream {
|
|||
// converted to an IDL value of type UnderlyingSource.
|
||||
let underlying_source_dict = if !underlying_source_obj.is_null() {
|
||||
rooted!(in(*cx) let obj_val = ObjectValue(underlying_source_obj.get()));
|
||||
match JsUnderlyingSource::new(cx, obj_val.handle()) {
|
||||
match JsUnderlyingSource::new(cx, obj_val.handle(), can_gc) {
|
||||
Ok(ConversionResult::Success(val)) => val,
|
||||
Ok(ConversionResult::Failure(error)) => return Err(Error::Type(error.to_string())),
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue